While i was like 12 i was dating a girl. During this relationship something was wrong like i had constant anxiety that she would leave me or would be hurt somehow. Then when she left me i couldnt forget about her for like months. I was literally ruminating way too much. Upon realizing that, i thought all relationships were an incredible burden and so difficult to maintain, and therefore i isolated myself from emotional relationships for 6 years. It was going good at first but after some point i noticed that i was getting attached incredibly easily to everyone and was being dependent on them. Eventually i couldnt control myself and fell in love with a girl and started dating her but nothing changed though. I was still anxious and restless. Then because of my restrictions to protect her, she left me and i fell apart again for like a year. I just couldnt forget those moments in that relationship while she simply didnt even care. All these made me realize that i had anxious attachment style, and for this reason i isolated myself again but it just didnt even go on this time. I just kept finding myself texting everyone i saw, trying to meet them, be with them and etc. I was literally praying for someone to text me a message or i was texting them. Despite doing these, i still got depressed usually at nights because of my loneliness and desperately wanted to be together with someone. 

This loneliness still goes on. I keep finding myself being attached to every girl existing out there. I just cant even stop thinking and dreaming about them. I keep having the same recurrent dreams where i date with someone or something like that.

However i do not know what to do though like i am taking a therapy but still didnt find out how to figure this issue out. It literally cost me many things in my life.

Do you have any ideas related to what else can happen if i go on like this or what i can do about it?
Thanks.