Computer freezing and entirely crashing while playing games

LeeTapSi

Honorable
Oct 1, 2014
56
0
10,630
Specs:
500w Evga PSU
8gb Crucial ram
Asus GTX 750ti
Amd x4 860k
Not sure about the motherboard.

While playing games like GTA V and CS GO my game just freezes and the sound loops. Sometimes it recovers and I need to restart the game but sometimes goes as far as giving me the blue screen of death. No Temperature problems also just replaced the thermal paste and cpu cooler and it didnt help if anything made it worse. Also sometimes the screen just stays black and the keyboard and mouse wont light on when starting the pc. Sometimes the motherboard gives me 6 beeps. I have tried different drivers, disabling all but one sound driver, Even changed from an amd gpu to the 750 ti. No help. Suspecting ram or psu.