Have you tried running MameUI with the IV-Play frontend available from the MameUI website? That's what I use to run it. Another thing you can try is deleting the MAMEUI32.ini file and letting it rebuild it.
Windows 11 64 bit OS
Intel Core i7-10700
Nvidia GeForce RTX 2060 6GB
32GB DDR4 RAM