This has been happening for years. In the mid-1990’s I was accused of harassment by a subordinate who I had just counseled on her performance - just like the HR handbook instructs. I was set upon by a screaming horde of feminazis from HR. I was suspended without pay for two weeks. It took me a little over a year of going through channels but the company finally relented, cleared me of the charge, and returned my two weeks of pay. The woman who charged me was recognized as the psycho she is and my supervisor - who helped orchestrate the whole thing - was fired for this and a lot of other stuff. I will never accept a supervisory position again. See my tagline.
Good to hear it turned out the way it did for you, however you should not have been put through all that in the first place.
As the saying goes, Been there done that.
I too was accused of sexual harassment. She wanted to claim my work as her own in addition to the small part of a project we had worked on together as part of my training her for her new position.
Never again! It was nearly a year later after she showed that she was a ‘nut job’, that I was called in for a personal apology by my department manager and the Manager of HR.
That whole episode was the beginning of the end for me as I actively started working on ‘early retirement’.