I'd look into it being a sort of anxiety disorder if it doesn't get better. Had a lot of internalized homophobia as a result of a fundamentalist church upbringing and I never thought of it as anything else until I finally went to a therapist about it. I can't say I'm 100% free of it, but having a name to it certainly has helped :)