Probably checksums were corrupted, I replaced the final block (0x200) copying it from another save file.
(By the way, the Pokémon Bank will not shut down along with the other online services, it will in the future, but not now. https://en-americas-support.nintendo.com/app/answers/detail/p/605/c/874/a_id/63227#s1q2)
main