Constipation

Sa

Lilli is 6 months old. 3 different times we have had to deal with screaming, shrieking, bloody constipation bowel movements. My husband swears it’s around the times she has had her shots, I honestly am not sure. She does eat solids and normally poops daily or every other day. I know to do juice or water to relieve the constipation but what do you do while they’re screaming in pain?? Or what do you do to avoid constipation getting this bad?