Here are a few of the pokemon i was talking about. Deposited them into bank, removed them, and loaded up the game. they were assigned tracking numbers but the illegal message still shows up.
Also wanted to clarify that my gen 8 mons work fine, its only with the pokemon from past generations that i have this issue.
534 - Conkeldurr - 001C00000000.pk8 638 - Cobalion - 48EBBBCD02ED.pk8