Why does games crash in my computer?

My specs AMD Ryzen 5 1500X, NVIDIA GeForce GTX 1060 3GB and gigabyte AB 350 motherboard

Most of the games i play crash without me doing anything, i dont have any backround applications running or anything. The game crashes and then i get the crash reporter, thats it nothing else. Sometimes the games i play crash when i open the game and before it even launches and sometimes after i have played like 4hours with out any problem (PUBG, Fortnite, Ghost recon wildlands, H1Z1)

Only game that doesn’t crash for me its csgo but it has a weird bug that my screen goes black and then the game freezes and the screen comes back up and only way the freeze goes away is me to alt tab and then alt tab back to the game.
Sometimes my screen goes black without me playing any games and then it takes like 2secs and the screen comes back up.
Any help? i have searched all around the internet without finding solution…

First of all this UE4 AnwserHub which primerly helps in UE4 devlopemnt, you should visit some PC hardware forum for help they should provide you a lot effective help.

But from sound of it a hardware issue, you saying that you are able to play some games for specific time, so you either running or have termals issue or some other hardware issue.

If you have 16GB you should not have issues with memory hardware wise. Run Task Manager with your game and see how much memory your processes take, see if some not getting too big.

On termals. Download monitoring software like CPUID HWMonitor and observe how temperature behave while you play both on CPU and GPU, Ryzen specifically don’t crash application because of temperature, when thermal protection kicks in it halts cores and screen become black which only reset can resume opration. GPU on other had can crash the application because if somethings goes wrong with GPU it stops the driver which crashes the game that is unable to render anything anymore.

But there potentially other causes, so got to some hardware forum with your issue