It happens when villagers are too numerous and don't have enough bed I think. They were all stuck together.
Linked issues
Attachments
Comments 2
it is not the same issue. The villagers were all compacted together which is not the case in the report you have transfered.
Duplicate of MC-145707