I doubt this will help but I had this problem occasionally but I removed -nod3d9ex from my launch options (dont know if it can be put into a config) and the problem went away.
Or you could try adding it lol. I'm not sure if it actually does anything but someone told me it removed some directx features