I'm so sorry you are going through this! I actually gave up breast pumping -- something in my milk was making my baby have colic. The formula produces gas.,.. but simple mylicon works for that. She's 100% Happier.
However, the doctor recomended probiotics to help - which seem to help with her pooping better. There is a brand out there that makes probiotic drops.
One bit of advice I can give... if you need a break - TAKE IT.... Put your baby in a safe place (crib), put on earplugs for 5 minutes and walk away (also doctor recommended). I know it sounds horrid -- but if you are stressed out and worn out -- your baby will feel it and will be too.
Good luck... Keep in mind, this too shall pass *hug*