I was crying with her

My baby was having a hard time pooping she was red in the face and crying I felt so bad that I couldn’t help her. The poop was green and solid she is 6 months eats baby food once or twice a day, and drink Enfamil gentle ease. I was so hurt for her now I’m thinking it’s not normal for her poop to hurt her. Ladies anyone else experienced this. She is fine now she is drinking a bottle and falling asleep but my mind is running wild.