The PC simply switching off under no particular load and not actually doing anything when trying to start make me think of a failing PSU or motherboard. The only way to check the PSU is to replace it. Have you cleaned the inside of the PC lately? Carefully removing the accumulated dust?
iMac Pro review