Sorry to hear that. By the way, what water parameter did you kept them? Don't get me wrong, I think you kept them well since I think 2 years is longer than most people can keep them.
IMO, just like any other fish, Pandas get weaken by the stress of shipping. By the time, we find them in store, some just can't bounce back from that. That is why some of them die within a week or 2.
Although I have no scientific long studied date or anything but I also believe most of the hobbiest are keeping them in compromised environment for them to really thrive. They usually keep them in community tank in around 75F with around 7~7.2 ph.
But I found them do much better if they are kept cooler 68~72F and 6.5~7ph. With high oxygenated clean water with some current. After all they are originated from the base of river near the mountain I read. I have tank full of young in 5G with 550L power head(145GPH I believe) with sponge attachment. And even tiny month old try to swim against the current. I just moved the adults to another tank few days ago.
Anyway, I don't know the long term yet that I only having them for year or so. And another 6month, I probably can't tell the difference between adults and the some of the young. We'll see how long they would live. Well, at least I have enough replacements. Since nothing last forever, unfortunately.
Anyhow, good luck with new Pandas. I think they are cute fish.
and more