Hello, there's many ways to detect this kind of errors + automatically taking action based on the situation, but firstly I need to take a look on the environment so I can give you best solutions based on how you use the environment, for example if you're using multiple streaming software's, minimized it, etc..
Let's chat, it's my game, thank you.