A few game updates ago, one person reported getting a 'device removed' error on a monitor with a 144Hz refresh rate, but could avoid it limiting the game to 60FPS. That issue should be fixed, but you could try setting an FPS cap or lowering the game resolution or settings, to see if that makes a difference (in early development builds, some people in QA occasionally got this error when running multiple instances of the game, or running the editor and game at the same time).
Are you shutting down all non-essential programs before starting the game, especially anti-virus, graphics utilities, or DirectX injectors, etc?
Another person reported getting this error in combat when playing the Steam version in Big Picture Mode, it was fine just starting it in the standard mode.
Try doing a clean boot and then test the game, possibly starting it directly from the '..\SteamApps\common\Divinity Original Sin 2\DefEd\bin\EoCApp.exe' executable.
Click Start, or hit WinKey-R, type in msconfig and hit enter; in the General tab, click Selective Startup, uncheck Load startup items (if required) and leave Load system services and Use original boot configuration options checked. Next, click on the Services tab, check the box to Hide all Microsoft services, then click the Disable All button (maybe make a note of which are currently enabled/disabled), then click OK and reboot the computer.
Run msconfig again to switch back to the normal boot configuration.
Several people have reported fixing these DirectX errors by using
MSI Afterburner to slightly underclock their graphics card (
topic). The person who original reported this said 'lower both the "Core Clock" and "Memory Clock" options by around 100 (so they say -100). Apply and close.'; generally that is enough, though one person reported that the initial test didn't help, but a slightly more aggressive underclock did (IIRC it was something like -200 or -250).
G-Sync / FreeSync:
One person with an nvidia card reported that disabling G-Sync in their drivers reduced the frequency of DXGI_ERROR_DEVICE_REMOVED crashes. Unfortunately, in that case the problem was hardware related, and other games started crashing before the card died completely.
There are a couple D:OS EE topics on this error (it seems to be rarer in D:OS 2):
DXGI ERROR Crash - turned WIN 10 conflict (reverting back to Win 8 avoided the problem)
DXGI device removed error/CreateTexture2D failed (fixed by a clean reinstall of the video drivers)
As mentioned in the second topic, there is a program called
TDR Manipulator that can change a Windows setting to control if and how Windows restarts the video drivers. Telling Windows to stop the resets may eliminate the crashes with the game, though if there is an actual problem causing the resets it will not be fixed, and could potentially lead to the computer freezing.