My personal suggestion is to learn how to deal with your feelings, which you can do while you work and/or look for another job. Do deep work on yourself.
First and foremost, learn how to surrender and let go. The Untethered Soul is a good place to start.
I'm in my 50s and I decided to take a year off. I called it my "midlife process to avoid a midlife crisis". The year was life changing. A lot of the work I did pointed toward letting go and trusting the universe. If you are hating the work, then get away from it.