When most people talk of burn out, they usually have spent years in the industry or probably have been probably working 12 hour days for a long period of time. For me on the other hand, I kind of managed to get burnt out (depressed) two years in the industry. I loved CS back in college, but my job felt like a punishment. The worst thing was I couldn't get myself to figure out what was wrong. The lack of a support structure for "emotionally exhausted" developers is surprising. But anyway once it got worse enough I just decided to quit, wasn't worth the toll on my health. Got back to the basics - started learning some ML and webdev. Built and shipped a side project. https://discoverdev.io - A daily list of interesting engineering blog posts.
Even now I have anxiety pangs, but at least I'm not depressed :) I realised I liked learning and building stuff in a collaborative atmosphere - it's something that just makes me happy. Currently I'm working on creating a platform for people like me - who just want to get together and make things.