So, as in the title my monitors will randomly go black and the gpu goes into emergencey mode(fans at 100%). After I restart the pc everything is fine. I built this pc in november and at back then I had to RMA the psu, and after that it worked fine for 2 months, so I doubt it's a hardware issue. It seems like for some reason the mobo loses connection to the gpu for a moment. The only thing that could be a clue that I found was that I have a lot of OpenGLDriver ran out of memory warnings in event logger.
PC Specs
Mobo: Gigabyte B650 Eagle
CPU: Ryzen 7 7700X
GPU: Gigabyte 4070 Ti Super Gaming OC
RAM: 32GB Kingston Fury Beast DDR5 5200MHz CL36
SSD: WD WDS100T3B0E 1TB
PSU: Corsair RM850x
PC Specs
Mobo: Gigabyte B650 Eagle
CPU: Ryzen 7 7700X
GPU: Gigabyte 4070 Ti Super Gaming OC
RAM: 32GB Kingston Fury Beast DDR5 5200MHz CL36
SSD: WD WDS100T3B0E 1TB
PSU: Corsair RM850x