Thank you for your question, brother, which proves to me that there is still some fight left in you. From the sound of your post, I would advise you to just hang the towel up for a while, but don't throw it in. Let me explain.
I believe that to succeed in any endeavour takes the intersection of skill, passion, and opportunity. Of those 3, passion is the fuel. And the answer to low passion is not to force ourselves to keep going, but to revisit the source of our passion (the fuel station), which is our love for what we were doing.
So brother, hanging the towel for you may mean taking a deliberate and time-bound break from pursuing coding, to give yourself a chance to remember why you took it up and what you enjoyed about it. I'm not sure what your financial situation is; you may have to do whatever you can to make ends meet for right now. Then take up coding again when you're rested and refueled.
It's a marathon, not a sprint. Please take care and I wish you all the favor and peace in the world.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.