This is good enough reason to leave coding. Don’t go into coding or your life will be hell. (If you had said same thing for finance I’d have advised same with finance too)
Find something you love. But since not all of us have a hobby that can give us financial satisfaction, find something you can put up with. It may not be something you love, but it should be a trade off between how much you are earning and how much that thing sucks life out of you.
It doesn’t sound very pleasing, but sadly this is the condition that we have. It’s only practical. Since finance doesn’t make you want to run away like coding does, and you don’t seem to have anything better right now, try finance.
My only suggestion would be to first give an honest and open minded try at coding because it is financially very rewarding. If you get a hang of it, you might end up liking it too. Good luck. Choose wisely