I feel your pain. I often self-soothe with food. About a year ago, I started taking anti-depressants and started gaining weight as a side effect. I talked to my DR and they adjusted my dosage and added a drug that helped with self control. Perhaps if you bring up the issues with your doctor, they can help mitigate the weight-gaining side effects

Good luck and know that you aren't alone!