For most game crashes after long gaming sessions, it is usually caused by a memory leak (software bug) or your gaming hardware getting too hot.
Of course there are other reasons as well (bad memory, bad drives, bad code, etc.)
A lot more people would be complaining if it was a memory leak, so I would focus on trying to keep your PS5 cool.
I do not know a lot about the consoles but a video I watched recently for new side plates for the PS5 showed that there appears to be a fan intake and fan exhaust on the sides of the PS5 near the top but underneath the white plates.
Perhaps you could try taking the side plates off to open up better air flow?
If that helps then you could look at buying after-market replacement side plates such as .. (scroll down the page)
https://dbrand.com/shop/special-edition/ps5
I would not buy the new plates until you know that improving airflow helped though.