Poop is not toxic in any way. As disgusting as it is, it's not dangerous. It's soft so it's not like she'll choke on it either. And you should be keeping a closer eye on her to teach her not to do that.
Just keep a close eye on your baby and keep snacks handing to put in the babies hand during those poopy moments and if the baby is getting the poop because she takes her diaper off. put the diaper on backwards. if that doesn't work use duck tape on top of the diaper tabs....good luck!