I had a similar problem 4 years ago and my doctor prescribed medication. I'm not good at taking tablets and so a Google search indicated, diet and exercise.
I started a Keto and Mediterranean style diet and started walking most days.
Within 4 months, my weight dropped 12kg (+/- 25lbs) my health improved, no more stop go toilet breaks and, more importantly, in consultation with my doctor, no more medication. It's been that way since.