Hi, welcome to the ehealth forum and I am glad to help you.
You seem concerned by the burning sensation in the ribs and wearing down of the ribs for last 2 years with weight remaining intact. You have also made a mention of being treated for erosive gastritis with medications sometime back.
As the symptoms that you have described, it might be the recurrence of acid peptic disease which can be substantiated with few investigations including upper GI endoscopy. You can discuss the same with your personal physician and start treatment on those lines.
Hope this helps. Take care.
Note: This post is not to emphasise final diagnosis as the same cannot be made online and is aimed just to provide medical information and no treatment suggested above be taken without face to face consultation with health care professional.