Install "roll-away" laying nests or other barriers, which prevent the hens from touching the eggs after laying them. It does not cure the cause, but it helps in preventing them executing these bad habits. These hens will probably keep this habit during their lifetime.
What is the quality of the eggshells? Are they thin and fragile? If so, the birds might be at the end of their laying cycle or laying life. Then, you might molt them give them rest and start a new laying cycle. Older hens or hens at the end of their laying cycle tend to lay eggs with thinner, more fragile shells
If they are still quite young , be sure that the amount of Ca, P and vitamin D in their diet is sufficient.
I agree with the food adjustment, likely hens are not receiving a balanced meal and I would consider free roaming if possible I quote also avoid overcrowding
Try to control management uints like: light intensity , over crowding and freqency of eggs collecting plus balance protien and Ca level in thier diet .
This behavior more often appears for birds in intensive management systems than free-range systems. More likely related to the level of nutrition. Provision of nest box can gradually change such behavior.
Provide enough nest boxes to avoid floor eggs and check nutrition to ensure it meets the dietary requirements of the birds. Also check for sex errors and cull them. Avoid heat stress via provision of ventilation and manage well the litters. There might be many factors contributing to this behavior, hence, go back to basic husbandry and management practices plus feed nutrition, biosecurity measures and housing structure and see what has gone wrong.