@gabriel2guimara
I think u could try to rename or remove the Mame file configuration for the game nameofrom.cfg if it only affects one game, or the Mame general configuration file default.cfg if the issue affects all Mame games.

From Windows explorer, the path for the files are:
on Recalbox 4.0:
\\recalbox\share\roms\mame\mame2003\cfg\
on Recalbox 4.1:
\\recalbox\share\saves\mame\mame2003\cfg\

Deleting default.cfg all previous configuration you made for Mame will be deleted Mame will recover its default config.