Yup that foam "case" made me cringe. Not just poor airflow, but actually wrapping the heat generating bits in insulation.
This gives me an idea; I might see if I can run some thermal testing on all of the Pis I have using my Flir to get some thermal images and put together a little write-up.
I've done a bit of experimentation previously when I'd build a little 1U server case with 3 Pi 4B in and added a custom fan controller (using an ESP32) to stick in my network rack, and it was running Kubernetes, but I didn't keep it long.
For RPI4, firmware update is requried to improve rpi performance and decrease temps.
EDIT: What that post is missing, is a comparison of all generations of the Pi; We know the Pi4 is hot, but I haev every previous generation sitting in the drawer, might be interesting (for me at least) to do some comparison.