When i encountered this problem, i put plastic eggs in the nests but those were broken by pecking at. then furiously i destroyed their favourite nest. For 2-3 days they laid eggs in another nest and i collected eggs as soon as they were laid and i frightened the hen out of nest who had laid egg. after 2-3 days i restored their favourite nest with new straw. and since have not find an egg eaten so far.