This is Dr. David
costochondritis would not be lasting for 25 years.
costochondritis is an inflammation of the ribs or cartilage, usually from a viral infection causing a short term pain of the ribs or cartilage.
usually non steroidal anti-inflammatories such as ibuprofen can help costochondritis pain
sometimes ulcerations in the esophagus can cause rib pain as well.
also pinched nerves and arthritis in the spine can cause rib pain
these have to be evaluated
you might need an MRI scan of your thoracic spine.
is the ulcer in your esophagus healed up or do you still have it?