sounds kinda like you might have fear of intimacy / anxious avoidant disorder, i used to really struggle with it (and still do just not as bad) and what helped me is to take things really slow in a relationship and work on putting myself into social situations i was scared of, especially stuff like opening up to people and being emotionally vulnerable to my friends or potential partners