I moved into a new job several years ago and one of the Sr. Directors that I worked with tried pursing a hook-up, which I was not interested in. So the next step was to make my life unbearable and he did. Stole my ideas, shamed me in meetings, publicly ignored me when I spoke. I talked to a "friend" in HR, off the books, because I'd heard so many stories about retribution. He suggested documenting, talk to another respected leader for advice etc. I started recapping all of our 1:1's via email, kept copies of everything, wrote situations down that happened outside of email, talking to him about the issue... But in the end, he was one of the "guys" and I wasn't. I was a well respected employee and had a couple of job opportunities pop-up in other orgs just before the 2017 layoff but was let go before I could take one.
The day before I was laid off, one of the hiring managers told me HR would be sending me an offer letter the next day. Didn't get it because I was laid off in the morning. It was very frustrating for me. Six months later the jerk was fired.
The stress was unbearable and I welcomed being laid off. I actually found a great job with another company, making more money/better benefits and the culture was very respectful.
I am SO sorry to hear you are going through something so awful. Keep you chin-up, try to look for another job (sad that we're the ones who have to do that) internally or externally. Best wishes.