Maybe he has been accused of racist and misogynistic behavior because he is racist and misogynistic. I sure as hell have seen him share antisemitic, transphobic, misogynistic, and racist content on his personal Twitter account. He offered to buy an employee a horse if she would sleep with him, for fuck's sake.
Glass ceilings are not made because a person is actually a victim of a smear campaign, they're made because a person wants to hold onto power without being held accountable for the shitty things they do.
Don't be an apologist for racists and sexists. You know why Musk is most comfortable around white men. It's because he's an insecure racist and sexist piece of shit.