When you transfer there's a limit of 1mil gil per character, 100k per retainer. That's probably why you lost 9 mil. I believe the only exception was made during Stormblood release for players leaving Balmung. It's not a bug, it's something that is actually explicitly stated when you transfer.