Our goats get into their nesting area, and stepped on an egg. they like the straw bedding, so go in there and "nest" with the chickens. They literally will squeeze themselves into one of the nesting boxes to lay with the chickens while they lay eggs. It's an annoying habit the goats have... I hadn't found a way to keep them out of the coop during the daytime, with out also locking our chickens out, and the chickens lay either right before bed, or around 9-11am.
I was thinking of just removing her, and giving her her own box next to the other chickens, she's our best layer, so if I can catch the egg before she eats it... we shall see, I'll move her tonight. I just hope the the remaining rooster/hen do okay with out her. It will be a while before my other 10 females are ready to be with him since they are only 3 weeks old.
I'm going to make her a little shelter, and see what I can do for an alternative nesting box. Maybe paint some rocks brown/white and put them in the nesting box with her, so she will realize she can't peck at them?
I'd hate to have to eat her.
Add a pop door to the building the chickens can use so the goats stay out.
Roll out nests also prevent egg eating.