Feeling guilty

I feel really guilty because my ex boyfriend and I were on and off for almost 5 years. We love each other and that's why we always come back to each other. He's made some mistakes over the past few years but I have made many more mistakes. 
I'm 5 days away from our baby girl being due and we broke up a few weeks ago due to a mistake I had made over 5 months ago while being pregnant with his child. I know it was disrespectful and wrong. (I didn't cheat, we weren't together at the time) I just feel guilty because the reason my daughter won't grow up in a stable home with both her parents is because of me, my mistakes, my thoughtlessness and carelessness towards my ex boyfriend whom I still love deeply. 
There is no reconciliation between us this time and it's very heartbreaking.