PC randomly restarts during gaming

Keksekopf

Prominent
Jul 22, 2017
4
0
520
Hey,

I've recently built a PC with all new parts and for some reason whenever I game the system sometimes shuts down then restarts again. It's not an issue while running any other program other than games, and my GPU should be able to handle all the graphical requirements just fine.

My specs are:
Motherboard: ASRock x370 Killer SLI
CPU: Ryzen 1700x
GPU: Sapphire Pulse Rx580 4gb
RAM: G.Skill 16g (2x8g) DDR4 3200mhz (set at 2133mhz on motherboard bios settings)
Corsair H100i v2 AIO cooler
250gb Samsung EVO SSD
1TB HDD
650W Unbranded PSU

Thanks in advance for any help :)