Unreal Engine is exiting due to D3D device being lost. (Error: 0x0 – ‘S_OK’) in UE 4.26.1 and 4.27

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’)

Unreal Engine is exiting due to D3D device being lost.

This is the error that happens to many people trying to use the latest version of Unreal Engine (4.26.1 and 4.27.0). After lots of researches, I finally got the solution to this problem.

How to FIX the ‘Unreal Engine is exiting due to D3D device being lost’ crash?

Some users fixed the problem by installing old NVIDIA Game Ready drivers but it didn’t work for me, maybe because drivers weren’t old enough (but who wants old drivers?).
Luckily, you can keep the latest drivers and still fix the problem following those steps:

  1. Go to this link from the NVIDIA official page

    The 24 September 2021 NVIDIA published a fix, reporting that the problem happens for NVIDIA Game Ready drivers 461.09 and newer.

  2. Download mpo_disable.reg

    From the link above, download the first file (mpo_disable.reg).

  3. Open mpo_disable.reg

    Once downloaded, open the file. In the advice you get, click on YES. This will add a key to your system registry that disables multiplane overlay (you will notice no changes).

  4. Reboot your PC

    The system registry keys are loaded with your OS, so you need to reboot your computer to make the changes effective.

  5. Open Unreal Engine and right-click in the Content Browser window

    This step is just to verify everything is working. Unreal Engine shouldn’t show display flickers or crash anymore because without multiplane overlay the game driver won’t interfere with integrated graphics (like Intel(R) HD graphics 630) so it won’t call the exiting due to D3D device being lost.

When “Unreal Engine is exiting due to D3D device being lost” fatal error happens?

Many people think this happens randomly, but if you pay attention it happens when an overlay window is created, for example:

Moreover, there are some conditions in which it happens:

Click here to see the full error code.

LoginId:personal-code

EpicAccountId:personal-code

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

What I tried to fix the UE 4.26.1 and 4.27 crash error, before getting the solution presented above?

The only REAL solution is the one presented above.