Hi, Welcome to Health care magic forum.
As you describe, it appears that you had a sedentary life recently, causing the weight gain.there might be change in diet pattern.
I advise you to consult a physician for diagnosis and treatment.
Avoid the calories, fats, oils, junk foods, fleshy fruits like guava, and banana.
Practice, morning walk,
yoga, gardening, and house hold works like cleaning, keeping things in order etc.
Minimize the sleeping time, practice late to bed, and early to rise. Avoid the day time sleep.
wishing for a quick and complete recovery. Thank you.