I agree with Andrew, side projects are a great way to rediscover joy. From my own experience:
- Decompress and seek fun, instead of aiming to "get a project done". Follow whatever excites you. If nothing excites you, step away from the keyboard. Go for a walk, bring a notebook.
- The Artist's Way is great for processing burnout, and self-discovery. One does not need to consider themselves an artist to find the book useful. ( https://juliacameronlive.com/book/the-artists-way-a-spiritua... )
You mention hardware, have you made a silly hardware thing recently? I can recommend running Rust on an esp32, lots of fun.