Weird alt-shifting issues

Something started happening with my game today, my game just randomly alt-tabs to my desktop, as if I pressed alt-f4, but it’s still somehow running in the background and then when you click on the game it goes black and takes a few seconds to come back up, I even got a combat bug after one of these instances and there’s no consistent pattern regarding its occurrence. Wonder if anyone else has been having this issue lately or if there’s a way to fix it.