Well, it turned out to be not the power supply or the motherboard. It was my worst fear, the CPU died. Apparently the 60c temperature on normal settings for a year killed it slowly.
So, if anyone crosses this post when their computer is shutting down randomly, it is a) overheating, b) power...