baby screams while having a bowel movement?

Clarissa • Mama
My 1month baby is on a formula for a cow's milk allergy. She's happy almost alway except when she poops! She screams until she's purple and can't breathe. Her poos are soft, greenish, but come out as pellets (but they're really soft like playdoh). Any ideas of what it is or what could help?
We already move and bend her legs. I've checked for signs of a rash. There's no blood.
Help!?

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors