Question My pc turns off randomly

Zomesch

Commendable
Nov 20, 2019
11
1
1,515
This is happening for months and its driving me crazy why. It used to turn off and not turn back again. However, after I bought a new power supply it ran fine for a few days and the problem came back. But this time I could turn it back on without much problems. If I can't turn it on I just change the power socket and it works for a few minutes then turns off. I also replaced my GPU but that doesn't seem to be it either. I cleaned my entire pc and examined all the fans (yes they work)
If I somehow plug a headphone it or touch it a bit the computer just turns off and restarts. I really don't know what to do. I checked the motherboard and it's not touching the case and it's held by 2 screws. I'm puzzled.