Egg eating is a learned behavior. Once the hen likes eating the eggs, it’s a hard habit to break. I would start by moving her to a new, unfamiliar pen. Put her nest box is a dark corner of the pen, and collect the eggs regularly.
Also, make sure to provide oyster shells in her diet. This will strengthen the shell and make it harder for her to break the egg.