How do I prevent villager children from disappearing?

Okay I think I've found out the reason for the mysterious disappearance! I watched the village children the next time one was produced. So since the Village and Pillage update (i think) baby villagers tend to jump on beds! Now the problem with this is that if a villager grows up while they are jumping on a bed and there is not enough space above them they will grow directly into the roof and suffocate :D . So I think this is what happened to Jeff and Michelle's child because when their next child grew up this exactly happened! An easy solution is a higher roof or no roof at all.