If I understood you correctly, you drank heavily because the relationship failed, and then state later that your drinking was why the relationship failed.
The relationship, or lack of one, has nothing whatever to do with why you drank. You drank when you had it, you drank when you lost it. I suggest the only reason you drank like this is alcoholism.
When you treat the alcoholism and become a functioning human being again, realtionships and other life problems will resolve themselves.