Have you tried imaginary friends? I had a problem with parasocial relationships last year. I was able to correct a great deal of it by instead shifting my focus to an imaginary boyfriend and sort of getting what I needed ( feeling loved, having a healthy relationship, etc) and not attaching my need to a person who was out of reach.
Also, if you're not in therapy i recommend finding a therapist who specializes in your problem.