I compiled the latest on 3b+ and 4 and haven't had issues on my layouts, including some many-layered PNG custom layouts with HD videos, marquees, wheels, etc.
Would you want me to test your layout on mine and see if there's a difference on this machine? I don't have it overclocked, and it handles what I've got just fine.
I compiled manually, so I don't know if that made a difference.
This is my compile instructions on Raspbian Buster on Pi 4. I have totally different instructions for the 3b+. Started with a CLEAN RetroPie install... i tried on a few other installs and didn't have much luck, so I started clean and it worked then. After adding other stuff in, it still seems fine.
*update*
sudo apt-get update; sudo apt-get upgrade
*make development folder*
cd ~; mkdir develop
cd ~/develop
*Install "sfml-pi" dependencies*
sudo apt-get install -y cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg8-dev libfreetype6-dev libudev-dev libdrm-dev libgbm-dev libegl1-mesa-dev
*Download and build sfml-pi*
git clone --depth 1 https://github.com/mickelson/sfml-pi sfml-pi
mkdir sfml-pi/build; cd sfml-pi/build
cmake .. -DSFML_DRM=1 -DSFML_OPENGL_ES=1
make -j4
sudo make install
sudo ldconfig
*Install attractmode dependencies
sudo apt-get install -y cmake libflac-dev libogg-dev libvorbis-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev libopenal-dev libfreetype6-dev libudev-dev libjpeg-dev libudev-dev libfontconfig1-dev libglu1-mesa-dev libxinerama-dev libcurl4-openssl-dev
*Download and build Attract-Mode*
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make USE_DRM=1 USE_MMAL=1 # it didn't seem to work when I added this -> USE_GLES=1
sudo make install USE_DRM=1 USE_MMAL=1
*Check to see that it was installed correctly.*
attract -v
Made sure I was running MMAL. Haven't noticed any problems since.