I could just as readily argue that women give up more than men because they have stronger priors of tech not being for them (fewer peers and role models, less experience, etc.) so any evidence they get confirming that hypothesis is more likely to push them into giving up.
We could, in fact, have both things happening simultaneously: some men giving up to protect their ego, but even more women giving up because they think it's not for them.