Recently left a job because it was not aligning with my values. Have to rely on freelance projects for a while.
This is not a professional advice, but IMO if the job doesn't match your values, you feel depressed thinking about, and aren't in position to change anything - better walk away while you are sane enough to take the decision.
Best of luck with your future endeavors.