Computer randomly restarts when playing games

Jad_1_

Commendable
Feb 24, 2016
3
0
1,510
so i build my pc from 1 month ago and i play bf4 i ptu the graphics at 1080 and high settings and my pc restart after like a 30 mins of playing and if lower the graphics it dosnt restart
specs :
i3 4130
8 gb ram 1600 mhz
gtx 960 4 gb
psu 500 w cooler master it came with the case
 

Jad_1_

Commendable
Feb 24, 2016
3
0
1,510





my max temp is like 62 for the cpu and 55 for the gpu and i am using the stock cooler and i did apply thermal paste
 

Jad_1_

Commendable
Feb 24, 2016
3
0
1,510


it came with the case ( atx 12v)
product number : TM-500-PSSR-M3
AND THE CASE IS COOLER MASTER