Kicked for inactivity but not inactive

Hello! I’ve played a couple of Junkenstein’s Revenge games and I’ve been kicked for inactivity twice. This happens while I’m actively playing the game. My boyfriend is playing on a PC beside me and having no issues. Is there a way to resolve this?