this is a common gpu bug on windows when using game capture! you can explicitely tell obs to open with your dedicated gpu (right click on the exe > run with graphics processor > select the option that isn't integrated graphics) to see if that fixes for you.
i've never seen that happen with window capture though! on mac there's something like that when you don't give obs permission to capture your screen, you should be able to fix that through the system settings window.