If the error is something about DepthSwapChain, then go to PROJECT SETTINGS > EDITOR > PERFORMANCE and change the following:
Default screen percentage mode for realtime editor viewports: MANUAL
Default screen percentage mode for mode for path traced editor viewports: MANUAL
Default screen percentage mode for non-realtime editor viewports: MANUAL
Hope that helps!