Get your calcium and VitD levels. Possible to get a pathological fracture in rickets.Get exposed to the sun.Do consult your doc.
Best wishes.
Is it possible you bruised or broke your a rib? I don't think there is any way to treat it, but time. However, you may feel better knowing what it is.