Sounds like you're going through a hard time — but know that many here have been there. Burnout can be hard to spot in time, but once you step over the event horizon, it gets a lot harder to pull yourself out.
My non-medical-professional advice would first be to check out the book Feeling Good, by Dr Burns. It sort of kicked off the Cognitive Behavioral Therapy model of dealing w/ depression, anxiety, and adjacent issues like procrastination.
Second, I can say that what's always saved me in the dark times was some personal project adjacent to the work I do professionally. There were times where I couldn't even stand to look at code, but then the excitement of building something purely for fun got me back into it — and I found, "hey, I can work again too!" Just be careful to take it easy, and not let the personal project turn into a job — at least not before you're confident your burnout is truly behind you. And that's something you don't want to rush.
Third: sleep, walks, good food & water, and meditation have all consistently made a positive impact in my life. You don't need a goal for meditating other than to start even with just a minute a day — but allowing yourself to empty your mind can be really beneficial.
It's also possible your brain and body are telling you it's not the right path. You don't have to suppress that feeling — but I've also found that I'm able to change how I interact with the situations I'm given. It's good to have long term goals, but we're not always able to teleport to our "passion" immediately. We can, however, find small ways of moving the needle every day towards the type of work we really want to be doing, and it can be surprising how fast the changes ultimately come.
Good luck, take it slow — and again know that you're not alone. It can be a scary feeling, but many have been there. Every day is an adventure.