I have an rpi4 with retropie running, and was able to play for several hours with no issues.
I started with a base raspian image, and followed these instructions here to install retropie:
https://github.com/RetroPie/RetroPie-Setup/wiki/Manual-Installation