I am so sorry. It is terribly hard to lose relationships so close together. And yet for some reason, breakups and deaths seem to cluster. My ex-wife broke up with me in September and SW did the same in October. I felt utterly alone. And while I am super lucky to have great friends, I was basically on my own. It was horrible, absolutely miserable.
Two years later I know that I can survive the death of any relationship. The end of my marriage was my nightmare and it came true. And I survived. I lost and important relationship with SW and survived. It sounds like you are well on your way to learning similar lessons. Learning about yourself is one way to make sense and meaning out of loss.