Susan Downs, of Rosedale Street, Millfield, first had an operation in September 2017 to put in a stent to treat her for pancreatitis.
It was replaced in October 2019 to try and improve her condition.
An inquest at Sunderland Civic Centre heard that Mrs Downs had been warned the operation could lead to a flare-up of her illness, and she agreed to go ahead with the surgery.
National Mackem Day 2022: 14 things you'll only understand if you're from Sunderland
Met Office announces yellow weather warning for thunderstorms across North East following heatwave
Durham police appeal for help to find 33-year-old in connection with alleged burglaries
Banned and uninsured Sunderland driver given jail warning by judge
Campaigners rally against Local Plan after farmland in Cleadon earmarked for 156 homes
She was discharged from Newcastle’s Freeman Hospital after the surgery, but admitted two days later to Sunderland Royal Hospital.
Her death four weeks later was caused by hospital-acquired pneumonia and acute pancreatitis due to the procedure involving the stent.
Mrs Downs’ family told assistant senior coroner Karin Welsh they were concerned and had been told the original stent had been replaced because it had been “placed wrongly”.
Dr Kofi Oppong, a consultant gastroenterologist at the Freeman Hospital in Newcastle, explained that was not the case, though neither operations had left the stent in the “ideal” location, and further tests found it had moved and passed through her body.
The 50-year-old’s relatives also raised concerns about her care at Sunderland Royal, and said staff should have made sure she took her medication.
Mandy Armstrong, B26 ward manager, said Mrs Downs had shown capacity to make decisions and declined a feeding tube. A review of her team’s work raised no issues.
Coroner Ms Welsh, who noted Mrs Downs also had lung condition COPD and diabetes, recorded a narrative conclusion she died of “a recognised complication of a necessary surgical procedure.”
Dr Shaz Wahid, medical director at South Tyneside and Sunderland NHS Foundation Trust, said: “Our deepest condolences go out to Mrs Downs’ family.
"Whilst we are pleased that the coroner found no issues with the care that Mrs Downs received while at the trust, we recognise that communication with her family could have been better and have apologised for this.
"We take the concerns of patients and their family members very seriously and always look to learn and improve wherever possible.”