I’ve never understood the “these people hate Star Trek!” take I’ve seen around the new shows. It’s clear that nobody working on these sets out to intentionally make a bad show. Some of the Easter eggs and references are deep cuts, so it seemed obvious to me that the people working on these are big fans.
My bet is on either thermals or power supply.
Not likely to be RAM, since issues there are more likely to either prevent the machine starting in the first place, or lock up if it fails while the machine is in operation.
Not likely to be CMOS battery since that generally wouldn’t cause the machine to shut off, it just preserves firmware settings between power cycles.
In theory, there could be an intermitted short happening somewhere and the PSU’s OCP is kicking in, but I’ve never come across something like that. Similarly, there could be a problem with an internal power cable connection doing the same, but it sounds like you’ve already checked that.
I would test with a different PSU if you can. Thermals should be easy to check for too with the many pieces of available software to keep track of such things.