Genesis-Plus-GX graphical issues

So this seems to be a very specific issue, but I was wondering if anybody else has experienced something like this. I’m using libretro Genesis-Plus-GX on Batocera v40 on a RPi5 and everything seems to look and run well except for one game: Mega Man - The Wily Wars. No matter what settings I change, and I’ve gone through just about every setting possible, there are horizontal dotted lines going across the screen. I’ve tried multiple versions of the game (both the original PAL version and the Genesis Mini re-release version) but I get the graphical issue with all versions.

The intersting thing is I have an old Retropie build on a RPi4 which uses the same emulator and the game looks just fine on that one. They are both running Genesis-Plus-GX v1.7.4. I’ve tried all of the different video drivers, various different resolutions, etc. I just can’t figure out why this one particular game is having this issue. Any help is much appreciated.