It's not about excusing behavior, it's about talking about the reasons behind that behavior so that those reasons can be addressed properly. The proper way to address issues whose source is pain and suffering is compassion. Not "feeling sorry for" a person, but understanding that they too are suffering and including that understanding in your analysis of the situation. The point that I find very frustrating in all of this is that the suffering which causes "inexcusable behavior" is not being talked about. We're not talking about -why- men act in this way, except in flippant ways - calling them "manchildren," etc.
We're not talking about grossly inappropriate behavior here. We're really talking about behavior that's sufficiently in the margins that an otherwise "okay guy" might do it because they just don't understand why it's problematic, or they don't realize they're doing it. (As opposed to really blatant sexual harassment or misogyny, which is still common in lots of other industries.) It seems to me that the issue with most of what the OP relates is simply rooted in ignorance and/or insensitivity, rather than any kind of suppressed suffering.
While it's unfortunate that some people fail to develop appropriately and learn to interact in an appropriately professional manner in the workplace, I don't know if that means folks have to feel sorry for them any more than if they failed to learn the appropriate technical skills to do their job. Interacting appropriately with the opposite sex and other ethnicities, etc., is a reasonable expectation of someone who wants to work in a modern workplace (and I don't limit that to the office or technology jobs.)