Hence if you have to take the pill then, choose a low-dose
contraceptive which will reduce the risks of side effects, including weight gain. Watch your weight, eat a healthy diet, and exercise regularly.
You could also consider an intrauterine device (IUD) with a low dose of hormones, like the Mirena or vaginal rings.
The answer is based on information provided. Exact advice is not possible without a proper examination and investigations. You are requested to consult your Doctor.