Stress could definitely have been a factor, but could you provide more information about their set up and behaviour?

That is, seemed fine doesn't tell us much.

Do they only get fruit flies? You might want to broaden their diet, cut up worms and such. Small crickets, maybe. They need variety to get the correct nutrients