A game logic error will often happen while being in a match. There is no real way for you to fix the issue - you must wait for an hot fix from Respawn. You can report the bug to EA support or on EA forum
In some cases, you could try verifying game files. It's unlikely to solve the issue.