I successfully kicked out a professor from academia who was a bully and was harassing many other people. But this costed me several years of my career and was extremely tough to do. Ironically, I eventually ended up in a worse place. Some things I have learned in the process:
* Bullying is much more common in experimental fields. From what I've seen, bullies are enriched in the population of >50 years old professor (male or female) who attracts tons of funding and publishes several articles per month. Publishing so often is, in general, a red flag.
* When joining a group, try to talk to graduate students and postdocs. People stopped joining our group because they knew it was led by a bully. In general, most students will be extremely honest about bad working conditions.
* Before joining, try to test drive the group in some way. For example, with a small rotation project. Usually, being an insider even during a short period will reveal all nasty stuff. We had many rotation project students and none of them stayed.
* A good heuristic is to join small groups where the leader, young or old, has skin in the game. Usually, younger PIs in small groups have more skin in the game and they tend to be nicer.
* Another good heuristic is to join groups where people regularly progress to other positions in academia.