Unreal Engine is exiting due to D3D device being lost. (Error: 0x887A0006 - 'HUNG')

thats the solution that worked for me:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers]

“TdrDelay”=dword:0000000a

“TdrDebugMode”=dword:00000001

“TdrLevel”=dword:00000000