Sorry you are hurting.
I personally wouldn’t confide at work. Not to a management. I mean I would if it’s something already happening and I need support like time off work etc but not if I am just considering it but might not follow through. And not to someone I don’t particularly trust like your HR person. Personally I’d keep it quiet at this point.
Like you said they are back stabbers. Even the most wonderful companies are there to protect their business, not their employees. Sadly that’s how it is. Screw them.