So this isn't specifically in response to the OP, but as someone who has been there, I hope a passing Googler finds it.
The people telling you to meditate or do cognitive-behavioral therapy are almost certainly right.
Neither of them ever really gave me perceptible results until recently. Here is why. If you exist for long enough inside of your own head, you can forget that it's possible to exist any other way. Some variants of CBT [1] call this "cognitive fusion."
If step one of CBT is "thoughts beget feelings, feelings beget thoughts" then step zero has to be "you are not your thoughts and you are not your feelings." This sounds obvious, but I had to have a dissociative episode to grasp it - if you're as deeply fused with your thoughts as I've been, it may not be something you can really grok by hearing it from another person.
So you do meditation or you do therapy, but you unthinkingly assume that the patterns of thought and feeling that you're trying to replace have always been there, and you can't even perceive them. So it doesn't work - the core of CBT is the practice of talking back to your thoughts, but it's really, really hard to do that if you don't (or can't) see the space between you and your thoughts.
I understand that many people have an easily-accessed self-concept separate from what's inside of their head. Tapping into mine is something I have to work at. I don't know if such theory-of-mind problems are something that coders (or trans women) experience at a higher rate than the general population, but anecdotally it seems to be common enough that this is worth dropping here.
[1] https://en.wikipedia.org/wiki/Acceptance_and_commitment_ther...