It seems to me that this error is unrelated to our game. I've found some attempts online on how to solve that.
Here for example (try on your own risk): https://appuals.com/how-to-fix-the-error-unreal-engine-is-exiting-due-to-d3d-dev...
Or you can of course search for that error by yourself in order to find something that you like better.