You're feeding too much. It's good to supplement hermit crabs' diet with pellets and such, but they also find things to eat naturally (algae that grows in every aquarium.) So you're giving them too many pellets, which start rotting before they can get to them.