PC Freezes/crashes when playing games

rethvol111

Prominent
Sep 1, 2017
8
0
510
As I mentioned in the title,my screen freezes and my keyboard & mouse stop working,but the pc is still running and I have to stop it from the power button.

What I've tried so far: performing a clean instalation of Windows,clean reinstall of graphics card drivers,memory test,disable c-states(that caused the pc to shutdown when playing CSGO),check for temperatures but they looked fine,nothing was overheating(on some programs it read that the motherboard was at 118 degrees celsius but inside the case was cool so I think it's bad sensoring)

Specs:
Intel Core i7-7700
NVidia GeForce GTX 970
8GB RAM DDR4
1TB HDD
500W PSU

One of my friends told me that it could be the psu