My rule is that unless yours or a loved one's basic well-being is at stake (e.g. you have family to support and no savings), you should not be putting up with a job that's causing you physical or psychological distress. Obviously situations can be complicated, but you should aim for that most of the time.