I've had some issues with depression and anxiety that I've been managing with my doctor, but there are still times where extreme stress can cut through the drugs and still give me some issues (work has been very political lately).
I started craving a cigarette, which is weird because I was only ever a cigar smoker, very infrequently at that, and gave it up (very easily, given I usually went months between cigars) years ago.
So under the guise of "if you're craving potato chips, maybe you're low on sodium", I bought a small, very low dosage, disposable e-cigarette at a convenience store. And the last two weeks have been some of my most stable, calm, consistently productive weeks in a very long time.
Now, I know Nicotine is very addictive, and I have no plans to go back to smoking. I'm planning to switch to a nicotine patch, as the vapor is irritating to my throat and there is still some concern of increased lung cancer risk. I think a patch will be easier to meter out the dosage, too, rather than puffing on a pen every time I feel like it. Sum total, I think I'm receiving a net benefit right now (it has also calmed my snack cravings and my blood pressure is now at a 5-year low).
Anyway, it's dangerous to self-medicate, but most people do anyway, whether it's with alcohol or bad relationships or the internet, and it's not my job to tell you what you can or cannot do. Just trying to relay that there might be some decision tradeoffs that might leave you with a net benefit.