Is there a way to avoid amniotic fluid embolism after your water breaks?

I read a story of a women dying because of it. Is there a way to avoid this from happening