Everything Kaphotics said is 100% correct. I am just adding on one bit of information before I lock this thread.
The random tracker you assigned on the mon, then placed into Sword, which then entered HOME, didn't become valid.
HOME merely assigned a different tracker cause the existing tracker on it is invalid.
It is known that Error 10015 checks don't occur when a mon enters HOME from SWSH.
Anyhow, as Kaphotics mentioned, even if HOME accepts this "bypass", yours lack the full paper trail and you're at least risking your own account, not to mention even the entire console. If you don't love the idea of expensive consoles becoming almost mere paperweights, I suggest you stop trying to abuse HOME.