When I start a game, it works fine for a few minutes but then all my peripherals stop and the only way I can start them again is to cut power from PSU, note that RGB on PC is still working and mouse LEDs start again if I disconnect the mouse for a few seconds, but that's the only one that starts. I tried updating the BIOS and re-installing Windows but I can't think of anything else.
These are errors i found in Event Viwer:



.
Specs:
AMD Ryzen 5 PRO 3350G with Vega 11 Graphics
Vega 11 2GB
16 GB RAM
Motherboard: Gigabyte A520M DS3H