I was discussing this today with a woman who works in tech in SF. She's had people try to harass her, but it doesn't bother her much; she's comfortable with pushing back. She's more upset about the startup she worked for tanking because the people running it were in their 40s and 50s and too slow-moving.
Another woman I know works for a large software company that acquired her software startup. She does a lot of public speaking, despite being under 5' tall with a mousy voice. She hasn't had much harassment. But she's mostly in the US northeast, not SF.
Another is a lawyer with a big law firm in Silicon Valley. She's had problems, but not really serious ones. She was originally not too comfortable with confrontation, and was a back-room lawyer drafting contracts. But once she started doing trial work, she became used to dealing with confrontation regularly, which improved her success at work.
All three women are horse owners. That seems to help. Women who own horses are used to dealing with huge, powerful animals with strong personalities. The skills to deal with this seem to transfer. Bullies don't seem to be a major problem for horse people.
(Years ago, when I had a horse at the Stanford barn, one of the high-school girls showed up after school and announced, in frustration, "I just do not understand teenage boys". I told her "watch the rooster for fifteen minutes and you'll figure it out." The barn had a rooster and several chickens. The rooster made a lot of noise, chased the chickens around, and didn't accomplish much. A rooster is testosterone driving a brain the size of a peanut. The girl came back later and said "Now I get teenage boys.")