Sorry to hear that! Hope this works, Wiwat!
This is the reference: D3D ERROR SOLUTIONS.
This person says:
1. "This error is typically caused by graphics driver instability, game-specific issues, or overclocking. To fix it, start by restarting your PC and updating your GPU drivers. You can also try other solutions like running the game in windowed mode, changing the DirectX version, or disabling any overclocking software. "
2. "This only happens in UE4 and it crashes every 10-15 minutes randomly, while i can use UE5 perfectly with zero crashes i have not got one crash from UE5.
i have uninstalled UE4, verified the files and the problem persists. i also have my gpu up to date using the studio drivers, windows is up to date, and i have no antivirus.
im using a 2070super, ryzen 5 3600, 32G of ram so my specs are clearly above the recommended especially since i can run UE5 flawlessly with the new features like lumen and not get any crashes at all."
:)