Apparently, If the command "/scoreboard players add" is run too quickly, it will glitch and change a players count for an objective into a very high negative number.
Comments 2
Thank you for your report!
However, this issue has been closed as Working as Intended.
This behavior is consistent between Bedrock Edition and Java Edition.
If you need help or have a suggestion you might like to follow a link below.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki
Scoreboards can only hold numbers to a certain size limit (negative and positive). If you surpass the limit, the number is inverted. This is intentional, but it could be changed so the number stops increasing / decreasing instead.