lr-mame2016 worked OK for me when playing games. I can't tell from your message whether it's working for you but throwing an error which you are investigating or not working at all due to the error. I did the standard Pi 4 build instructions. I couldn't get bbhcotw to run though so I'll be interested if you solve the error for this particular game.