Over abundance of units from nowhere

Summary of bug here.
I got roughly 3 million out of nowhere , I had roughly 800k before it happened

Steps to Reproduce

Please list how this bug can be reproduced, if possible. Pictures would be much appreciated!
Don’t know how.

Thanks