My Unreal Engine keeps crashing :(

I’m not sure what is causing my software to crash but, I would appreciate any help I can get. This is the error I get.

LoginId:017a765c4b09b1a1939a0db798e73b72
EpicAccountId:87f0797be386460e92d864e022711a85

Assertion failed: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Util.cpp] [Line: 198] Unreal Engine is exiting due to D3D device being lost. (Error: 0x887A0006 - ‘HUNG’)

UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_SlateRHIRenderer
UE4Editor_SlateRHIRenderer
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

Thanks and any help is appreciated.

It might be related to this affecting Substance software too:

I’m having the same problem, any solution??

I foud the permanent solution to this bug. go to Nvidea control panel -> 3d settings and turn off all antialiasing for ue4 (i did it globally cause had the same bug before with other programs, so if it doesn’t work, try globally changing it). Hope this helps <3