Fears of lack of amniotic fluid.

Dominique • First Child. Praying for a healthy beautiful baby ❤️
I am really trying to understand the dangers of the water being broken. I was told if the water is broken over 12 hours the baby is at risk for an infection. My sister was in labor for 72 hours, water was broken for 18 hours and sure enough they both had infections. However my cousin just delivered her baby and water was only broken for 5 hours before she pushed and her baby also had an infection from lack of amniotic fluid. So my question is how can we know? My sisters situation was totally the hospital not wanting to take the baby out. But my cousin did everything right and still has to go through not taking her baby home, baby getting spinal taps, & the fear of the infection going to her baby's brain. It's really scary 🙁