Based on your error, I believe it's this:
It's a new legality detection added to the latest PKHeX update. This just means your mon was always illegal to begin with, just that past versions of PKHeX didn't have the check, and well, researchers weren't aware of that RNG relationship.
Now that it's known, we can check for it, and expose certain hacked mons as being illegal.