Life expectancy is about 2-3 years. I would keep an eye out for fluctuating water parameters, especially salinity and nightime pH. Inverts are much more sensitive to swings that fish can tolerate better.
Alternately, inadequate water changes can cause a lack of needed minerals for them to molt safety.