Hi! Sorry you're having this problem with your baby! I'm not a vet but it almost sounds like she may be constipated?? If she strains a lot when pooping and has hard stools that may be the problem. You might ask your vet and change her diet...
Good luck!