All you can do is be a steady presence in her life, and encourage her to look into why she feels the way she does. Suggest therapy, some self help books, anything really in a constructive manner that she can use as tools to help identify her problems and possibly how to address them.
All you can do is be patience and steady in your support and love, learn the triggers that cause her to clam up and how to work around/defuse them. Remind her (very kindly) that you are not those men, and that while you understand her emotions are not caused by you, that it is painful when she takes them out on you.
Good luck, but it will take time and she probably should get some sort of therapy.
"Well, then," the Cat went on, "you see a dog growls when it's angry, and wags its tail when it's pleased. Now I growl when I'm pleased, and wag my tail when I'm angry. Therefore I'm mad."