The first thought that popped into my head here was, "well I have no kids, so yeah if forced to choose between job and morality I'd just bounce and figure it out later". But if I DID have dependents it's harder.
I will say if the choice is between being imoral and _personally_ poor ... I'd like to think I'd rather just be poor.
edit. Then again this is also on us as people to anticipate and prepare for these dilemmas and not let ourselves be trapped in toxic situations. I suck at this and don't do any real forward planning like having a lot of savings or having a backup plan to getting out of a bad job. But that's on me.
Hope it works out alright for you!