One thing that helps me avoiding binge eating from meds is keeping myself busy. Whenever I have too much time on my hands I tend to eat out of boredom like many people do. Also, I eat and buy healthy food and try not to buy large amounts of junk food so it's harder for me to get to. If I have a lot of junk food in the house I'm much more likely to binge on it. I also drink a lot of water and other no-calorie drinks like black coffee and teas throughout the day, this helps my appetite from getting out of control
I know weight gain is frustrating, good luck