Minimum of 10 years or max?? I guess it could've been shock but I think all of these were factors:
Water shock
New surroundings
Being alone
Smallish tank (8 gallons)
Gravel
I think minimum, I'm not sure. It was probably water shock. My Leo i had two weeks alone before I got another loach