I recently built my first pc. After a few days of running just fine with not crashes, my pc began to randomly shut off. After shutting off it would try to start back up again, sometimes succeeding and sometimes shutting right back off and trying again. It’s not at the point where I’ll turn it on for 5 min and it’ll shut off and keep trying to power on. I booted into Bios, safemode, and it shuts off in those too. Based on that I think I can rule out my graphics card, ram, cpu, and motherboard so I think I’ve narrowed it down to the psu.