I've seem to always have an issue with my pc whether it be bsod or just the computer shutting down while gaming. But I decided to upgrade some components and everything usually seems stable for a while but then another issue pops up eventually. The parts I've replaced so far is the gpu, psu, cpu cooler and motherboard but I've also added 2 ram sticks of the same model and an extra ssd aswell. But the most recent part I've replaced was the motherboard and it was fine for like 2 months but recently I've noticed my pc just turns of randomly and it's getting worse to the point it turns off potentially 3 times a day. I don't even need to be doing anything really intensive like today it shut down when I only had steam and discord open. When I got the ssd I also decided it would be a good idea to remove everything from my current hardrives and move the operating system to the new ssd.
I'm just curious what steps I can take to diagnose the issue, I've tried looking at the event viewer after a crash and the only error I find is one about secure boot update failed, I don't know if this is the cause of the crash or a product of it. Cheers