Unreal Engine is exiting due to D3D device being lost AGAIN AND AGAIN

Does anyone have a solution? I recently built my PC and it works fine on my laptop but doesn’t on my PC which is ironic because this thing is a beast.

AMD Radeon RX 5700 XT
AMD Ryzen 9 3900X 12 core 24 thread
AMD Motherboard MPG X570 Gaming Plus

I’m using the 4.25 version of Unreal and every time I start editing my project it stops and ends up crashing. Then it starts messing with monitor . Any help would be amazing.