RetroPie 4.2 was released in 2017, so even in 2021 you were using an out-of-date version. My advice is to install from scratch using the current release and transfer your ROM/BIOS folders over to the new installation.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.