I use the .7z archive format with the MAME libcore 0.223 (august 2020). And my Batocera x64 laptop is updated to 5.27.2.
It works properly.
You should check your MAME romset with ClrMamePro and the MAME 0.139 dat file. Many people download some “fullset” anywhere and some of them have wrong roms. These roms will not run properly or will crash with an unapropriate MAME version. With the MAME 0.139 dat file, you’ll be able to know if a game have the “working” status too. Because a MAME fullset contain some unemulated games.
To make a MAME dat file :
. download the MAME version you’re expecting for (ex: 0.139) from its official website : https://www.mamedev.org/oldrel.html
. then use this command line : mame -listxml > gamelist.dat
With newest MAME releases, you can export the .dat file from its own internal interface by selecting only working games. That’s what I did after each Batocera upgrade to keep my romset uptodate.