feeling like a failure right about now

I feel like a huge failure. I have a five month almost 6 month old daughter. I am 11 weeks pregnant. My sweet girl was EBF until my milk started to dry up. I never planned to get pregnant, and I never planned to stop breastfeeding. I feel so defeated. Everytime I have to mix formula it's like a slap in the face because I wanted to breastfeed so bad. Everything was going perfectly and I am so hurt that I'm losing this with my daughter. I'm finding it so hard to be happy about being pregnant because I'm so upset about failing at breastfeeding. I tried SO hard. And I'm still trying. But it's quickly going away and it is so depressing. Please I just need a pick me up.