You will be okay. It will take time. Being a veteran of two failed marriages and many other failed relationships that I thought I could not live without I want to assure you that you can and will. And if your experience is like mine, you will come to be quite content that none of those relationships did last any longer than they did.
Actually I no longer consider them "failed" relationships. They are relationships that I eventually learned very much about myself and other people from. They were necessary to my finding my way to a better and more health level of functioning and intimacy in my relationships. Very painful to go through, but if you look at what you are going through as a learning experience you will get better. Take care of yourself and be nice to yourself while going through this sorrowful and painful time.