Graphics exception occurred could not create the Direct3d device

Hi,
I have a video dedicated card and when I am trying to run a game I have this error with 3D device. I don’t have this error all the time when I play games but once or twice per week appears. I have reinstalled and updated my video card driver, but I still have this error. Does anyone can help me please to solve this error? Why I have this error and why I don’t have it all the time? Thanks.

Error
GraphicsException: Could not create the Direct3d device No device is available
0040911E
(E:/Steamworks/Starbound/git/starbound/source/graphics/StarGraphicsCommon.hpp:8)
409370
(E:/Steamworks/Starbound/git/starbound/source/graphics/StarApplicationbase.cpp:645)
0040A9CD
(E:/Steamworks/Starbound/git/starbound/source/graphics/StarApplicationbase.cpp:237)
00407C30
(E:/Steamworks/Starbound/git/starbound/source/client/main.cpp:48)
004DBBD1 (c:SDL-1 2.15/./src/main/win32/SDL_win32_main.c318)
OK
