I would recommend to investigate if your job is really the reason for your gloomy state of mind first. It could be, but other factors (depressive disorder, relationship issues etc) should be excluded before you make life changing decisions in my opinion. Many airlines nowadays offer access to counselling services, or check with NHS etc, maybe worth a try.