I am so sorry.
One thing I learned in healthcare that sometime things do not go as planned no matter what was tried. We can't control our bodies all the time.
You are not a failure. You an amazingly strong mother and you did all you could. Is birth about an experience or about having a baby? I think it is about having a live baby. That is the goal of the birth. You achieved this goal. Your experience did not go as planned but a lot of things do not go in life the way we planned and we can go over and over those experience and get stuck in them and feel traumatized. Or....we can accept, breath and move on. You have a long path ahead of you as now you are a mother of two !
It could be helpful to see therapist for a few sessions.