Why Unreal Engine keep crashing?

While using unreal the program crashes suddenly. I have already uninstalled the drivers, cleaned the registry and reinstalled the drivers. In addition, I have already checked the unreal files and checked the 3D settings of the video card, setting the Nvidia GPU video card to unreal.

PC specifications:

  • intel i7700HQ
  • 16 GB RAM
  • Geforce gtx 1050ti

Crash report:

LoginId:b0643e8b4ac10c6f14eca6bcf0644aab
EpicAccountId:5df1e5aae75949dfa23ef7ceb768fb44

Fatal error: [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: 0x0 - ‘S_OK’)

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