It's definitely important to know when to quit, but it's also important to know when to fight. For example, I'm in the tech industry working for a AAA videogame company. I could leave, but I'm in a luxurious position where I don't get harassed or put in dangerous situations. I also know that the rest of the tech industry is full of the same bullshit. So, I'm choosing to instead fight back and change the status quo.
There are a lot of issues. I'm not personally experiencing harassment, but several coworkers have. We're way underpaid in the industry, we're especially fighting against RTO, and communication from management is awful. Retaliation is common. The company has been engaging in illegal union busting. We have a lot to fight against.
Oh... some of those issues you outlined (like retaliation and harassment) are illegal. If someone can prove that it's happening then they can sue, and win. I hope things get better for you and your coworkers. Nobody should have to face harassment at work.
Can you refer me for a job. I am a dev manager with a decade of experience. And I'm a Marxist. I lead the change from within. Looking because RTO only benefits shiity managers.