Postural tachycardia syndrome sometimes, or POTS, leads to a variety of symptoms, including right-sided rib pain. This pain is usually felt on the side and may worsen when in an upright position.
Despite POTS itself https://directoryarmy.com/listings13131375/pots-and-right-rib-pain