I agree with the others advising OP to make female friends first, but that can also be an issue. Someone with little social skills, unpopular or not had opportunities to do things with others will struggle as they've not had the experience and from mine it's defo the case that you get judged on these things more by girls than guys. A girl might talk to a friendly guy to be polite or kind when someone like OP might take it the wrong way and unknowingly reinforce the perception of creepiness/neediness that he clearly wants to stop.
When you're past a certain age, you (very wrongly) start seeing most girls as ones you want to get with. "Will she be the one that saves me? Will she be the one I lose my virginity to? Will I end my sickening loneliness and have someone to love?". These are all thoughts that resonate with you because you're inexperienced and so unnerved by this fact that you start reading too much into every interaction, psychoanalysing even the most trivial things unfortunately (leading to more mental unbalancing). Not getting attached requires hobbies and pursuits, so I'd invest in these heavily to claw back the immense attachment to these girls he's getting (a driven, purposeful guy is also an attractive one to a range of women btw).
Take things slowly and with little expectation, so that way you don't feel bad if things don't go the way you want them to. You'll learn from the slip ups and maybe at the moment you're about to give up, there could be a girl who ticks all your boxes and likes you for you; it's just a matter of it happening rather than being obsessed with girls who you failed with before. As long as you're doing you, that's all that matters..