If you are in a place where you decide you should really be working, then you can work and not feel miserable about it. If you are in a place where you can live a fuller life without working a regular job, then you should do that instead. There's nothing wrong with helping people out at work, while getting money so that you can help yourself and your loved ones out at home. And you can enjoy both parts. As long as you aren't doing something you'd consider evil at your job. Then the same selflessness might help you to either quit or make change inside the company, without having so much fear about what will happen to you.
If you are so miserable while doing any kind of thing in a set way over any length of time, then you may find a soul-crushing moment where you have achieved permanent financial independence, are living your dream, and find this feeling overtaking you again. But this time there is no hope of an eventual way out.