Computer crashes as specific times in specific games

yomamasfatllamas

Reputable
Apr 8, 2014
59
0
4,630
For a while now, my pc has been crashing at specific points in time in specific games. My pc will turn off completely and restart on its own in 2 seconds. For example, I was playing For Honor and my computer only crashed when I was in the loading screen for the deathmatch mode. I once even tried tabbing out when loading into the deathmatch game and I thought it worked but when I tabbed back into the game after the loading screen, my pc crashed. When I play Overwatch, my pc will crash when I load into the hero selection screen in a competitive game (not every competitive game).

Things I tried:
-Antivirus
-Checking GPU and CPU temperatures
-Getting rid of dust in my pc
-Uninstalling and reinstalling certain games

Specs:
-16GB DDR4 2400hz RAM
-GTX 1070
-i7-8700k (not overclocked)
-MSI Z370 SLI-PLUS Motherboard