@NickEh30 Hey Nick, if the case is ur pc going black and restarting, with my own knowledge thats ur PSU having a problem, but if ur CPU gets hot its definitely the cooling.
I canโt call myself a expert but I hope itโll help u out. Also u can check the reason in โevent viewerโ.