Question My pc would start up and then shut down

Nov 11, 2020
So I would start up my pc and then after a couple of minutes it would shut down randomly.I’m not sure if it’s because of overheating problems or because of some faulty hardware.I tried so many things like taking out the ram and putting it back in and reinstalling the cpu and fan, it’s making my head spin trying to figure out the problem so I could get this thing fixed.