I try any screen size, window and full screen. Still no luck. If it help when I switch between window and full screen the box appear for a second.
If you think this bug caused by m1 chip, maybe you can set up as x86 app and make use of rosetta2 help encodeing the game.