Hi friend. Judging whether your actions are right or wrong isn't something I can objectively do, but I can say this: You and your partner have different needs that you two seemingly were unable to reconcile. Neither of you should feel burdened over this if you believe that you made considerable efforts to reach out to the other.
If you still feel unease over how the relationship ended, please consider finding a therapist who can help you to unpack your feelings and orient you towards recovery.