Hens often test the shell quality after laying by tapping them with their beak. If your hens are just coming into, or going out of lay then shell quality may be poor. You could try making sure they have access to limestone in some form ie oystershell grit, and also they need vitamins to help absorb the calcium so cod liver oil can give a boost.
Darkening the nest boxes by fixing a bit of old sacking or blanket half or 2/3 rds covering the next box entrance can help, or fitting rollaway nest boxes. As you say once they beak punctures the actual egg and they get a taste they can become egg eaters.
Small holes can also be made by the claws on the toes, and the same remedies apply.