So they have optimization flags left off?
It might be "that simple" but there might also be a reason for it. I have a hard time believing that was just a simple oversight when it apparently was done for the PS4 version.
Can compiler optimization introduce bugs?
Today I had a discussion with a friend of mine and we debated for a couple of hours about "compiler optimization". I defended the point that sometimes, a compiler optimization might introduce bugs...stackoverflow.com
There's probably something in their shitty engine / code that doesn't play ball with the PS5 SDK libraries and / or firmware, and rather than actually putting any work in it, they shipped the game with the optimisation flag off.