There is no amount of money that will make you happy doing something that makes you miserable. If your job is making you miserable, and especially if your job is causing you to violate your ethics, it’s important to make a change as soon as possible. You might make less, but you will be much happier.