So, if you are paycheck to paycheck on 40k, and you quit to make 50k, that 10k is far, far more valuable to you than making another 30k is to someone making 80k a year with the same expenses.
Keep that in mind for how much more worth it even more modest increases in pay.
Keep calm and quit your shitty job for a better one!