Screen freezing but not crashing the game, have to switch to other monitor to reset the screen and continue playing

I have two monitors and am playing on battle net. Constantly and randomly, throughout a match, my screen just freezes. I am still in the match and can move around and do everything but the only way to unfreeze the screen is to press escape, click on my other monitor, then it resets the screen and I can continue playing. Does anyone have any fixes or ideas. Drivers and everything is up to date, graphics setting are low to maximise frame rate and don’t have any stuttering or anything on the screen, it just freezes randomly.