I can't answer this because of site rules, but I know about this through personal experience
Download PKSM or something to back up your save file if you're afraid of losing it.
I use PKSM to manage my boxes because it has insane quality of life features, and likewise, once upon a time, one particular Pokemon got corrupted while managing the box in the software. I could not hover over it in the PC without it crashing; just like what you described, except you did it legally. Download something to back up your save (I suggest PKSM since that's what I do, but there's other softwares and even more legit methods I'm not fluent with.) and that way you will always have a copy of the savefile if something were to go wrong.
Anyways, I'm 100% confident your Pokemon got corrupted while moving it around in Pokemon Bank, because the same thing happened to me (but different software). The Pokemon was legal, and I had moved it around before with no issues. Releasing it in my software fixed the problem for me. There shouldn't be any other issues; such is the risk you take with external softwares, legal or not. There's always a chance of corruption.
I hope this puts your mind to ease.
Edit to add: Yes, these cartridges are built to last, unlike the battery = save data in Gens 1 and 2. Everything of course will deteriorate over time, but take good care of it and it should last you a lifetime. Keep the contacts clean, store in safe places away from elements. One day it will perish like everything else, but if you're worried, back up the save file so you can slap it onto another cartridge if it happens.