Question PC completely locks up while gaming

MCS_870

Prominent
Jun 17, 2018
20
1
515
Hey guys, so I've been having some issues with my PC completely locking up while gaming. It will usually lock up after about 1-2 hours of gaming and when it does lock up I have hold down the power button. After I power it back on almost every time I get prompted with a screen that says windows is updating, then it will say that the update failed and will say "undoing changes". After this it will boot into windows with no apparent issues and everything will seem fine until I start gaming and it locks up again and it repeats this whole process again. I am not overclocked at all and my temps are fine. I also ran a memtest over night and got 0 errors.
my specs:
Windows 10 64 bit
ryzen 5 2600
GTX 1080 ti sc 2
16 gb ram ddr4 2933 mhz
asrock x470 taichi
evga 750w psu
500 gb 860 evo