EDIT: Players affected by this issue have been contacted via an In-Game Message
On 29 July between 09:02 and 09:30 (UTC+0) there was a small server error which caused some players to be kicked out of their battles. The issue was quickly resolved.
We are currently investigating the cause and will contact the affected players once we know more. Our apologies for any inconvenience!