Recently my pc has been freezing when playing games, the audio would still play in the background for a bit until it stops and the screen goes black, no inputs would work during this. Diagnostics are all clear and log viewer shows no noticeable error, only your standard didn’t rebooted properly.

My specs:

Intel i3-8100 CPU @ 3.60GHz

GeForce GTX 1650 GPU

8GB RAM

Gigabyte B365M DS3H Motherboard