Hi, Welcome to Health care magic forum.
As you describe, you would have realized while the weight is increasing. Any how you can try to control it by strenuous attempts, but not impossible.
You can keep weight under control, by avoiding fats,fries, junk foods, and oily foods.
Increase your activity by practicing, morning walk,
yoga, gardening, and do any work in front of you.
Minimize the sleeping time ,practice late to bed, and early to rise, avoid day time sleep.
Wishing for a quick and complete recovery. Thank you.