I'm not sure I even regard this as a developer studios responsibility.
I mean, they're the ones running the servers and ultimately providing admittance. There always going to be "bad people" unless owners of establishments actually exclude them (or as I've suggested -- since this is an imaginary world -- just take away their ability to be a jerk in said world).
Change what is in your control:
Play in a good state of mind where this stuff does not get to you (not when you're tired after work). Turn off voice comms. Don't let it get to you. Worst thing you can do to a troll is ignore them.
Definitely good advice. Part of it is genuinely just friends too though. Like this isn't "my friend", this is my friend (though that's not to say I enjoy this crap either)... and sometimes it's hard to gage their mental state, or even though they're in a bad mood, I'd really like to do something more challenging ... and of course they get t-bagged or abused on comms ... and then everybody is having a bad time.
I wish I had access to these game's source code... then the whole thing would be in my control ☺️