If one starts doing it you need to get rid of her, the others will learn and start doing the same. Lack of calcium in their diet will also cause this, why it is important to supplement with oyster shells
Chickens (especially non-broody hens) will occasionally consume their own eggs either from stress, boredom, or if the nest feels too exposed. They've also been known to occasionally eat newly hatched chicks as well.