This was how it was for me. I got burnt out coding a lot and studying for interviews (as I'm mostly self taught). I started going to therapy, but got fired after working under an awful manager that I didn't feel comfortable opening up to. Interviewing while unemployed pushed me further into burn out.
Coding originally pulled me out of a funk, it gave me something to work at. But now, I feel like I lost so much passion. I can't imagine coding in my free time even if I wasn't a developer anymore.