hi,
thank-you for providing the brief history of you.
as you mentioned about the pain coming again and again due to the rib popping out there is surely a way to get this situation under control. As you do not have any fracute or
broken ribs it is really a good sign. But if you would have mention here which rib and at what part of the rib is popping out then it would have added much more sense to the question for understanding. well, I looks like that the intercostal muscles or your
rib cage are little weak. As due to the weakness or the muscles the rib is popping out of its original anatomical position and giving you trouble.
what you need to do for coming out of the situation is , focus on doing regular breathing exercises.
there are forms of performing breathing exercises like -
Deep breathing
Costal breathing
Diaphragmatic breathing
Abdominal breathing
pursed lip breathing.
combination of benefits coming out of this exercises is to get good strength in the muscles of the respiration. while performing this exercises please place the band at the area of pain initially.
Also, to understand the muscles of respiration -
they are the primary and the secondary muscles of respiration.
by performing this exercises you will have benefits like this -
improved lung capacity
improved muscle strength
improved metabolism
improved cellular mechanism.
of all these, you will get relief in pain and the popping will come down.
with the grace of God I wish you a good health.