I know this post is old now but for anyone revisiting it. I have 2 monitors and an Nvidia GPU.
In my nVidia control panel, I override the default settings for each monitor:
Check: Display -> change resolution -> 3. Apply the following settings -> use NVIDIA colour settings -> Output colour depth
I had one set to 10bpc and the other 8bpc.
I think the explanation is that the GPU is loading in the different colour depths when the different windows are focused, and in that down time the screen does black. I fixed the black screen by setting both screens to the same value (8bpc).