I'm on medication now, going through therapy, and still at my current gig doing better than ever.
So, what I want to say is that if you are concerned you are burnt out - it's very possible work is burning you out, but it's also possible to seek treatment before making a big decision like leaving a workplace with tons of great benefits and healthcare to support you.