I'm sorry you're having these issues, but I think they're fixable. You've gotten great advice above, I'm pretty much going to say the same thing.
How old are the birds? What breeds?
I'd pull out about 2 dozen. Either the lowest/weakest, or the highest/strongest. Rig some type of temporary housing if you need to. A quick hoop coop with some tarps may be doable, depending on your location/climate.
Hold off on they layer feed. As a rule, layer is the lowest protein feed one can buy--double check your label. It's usually around 16%, which is basically the minimum needed to support egg production in confined hens with no supplemental feed. A quick google tells me wheat can run from 10% on up....so feeding half wheat and half layer is basically bringing down the protein to 12ish %, too low for your birds. Buy some grower or non-medicated starter, you're looking for something closer to 20% protein. Use that as the only feed for a few weeks. No corn, scratch, wheat, etc. The alfalfa is usually a decent amount of protein, and the diversion is good, so I'd continue that.
Relieving the stress from overcrowding and boosting the protein should help. You may still wind up with birds that now have this as an ingrained behavior, though. You'll need to decide if it's worth keeping those hens. Pinless peepers are an option if you decide to keep them. Culling the birds from your flock is also an option.
Good luck!