Unit selection bug

Hello, I have found a game breaking bug when playing sometimes. It involves not being able to select units at all or move them. Bringing up the pause menu occasionally fixes the problem but most of the time it doesn’t. This occurs on PC.