Milk coming out of nose

My Lo isn’t constipated at all. But she is a grunter when pooping. As she pushes and grunts to poop, she spits up (not a lot) and it comes out of her mouth AND nose. She freaks out! How do I prevent this ???!