Thanks for posting your query.
I am Dr.Ratnakar Kini and I am pleased to assist you.
The swelling you have in the ankles, feet and around the eye lids is not related to the stomach ulcers or the medications you tak.
Swelling like these occurs due to either heart, liver
diseases. Puffiness around the eyes usually occurs in kidney disease.
You need to get tests done to see which of these organs is affected causing the swelling of the ankle, feet and around eyes.
I hope that answers your question.