Postural tachycardia syndrome sometimes, or POTS, leads to a variety of symptoms, amongst right-sided rib pain. This pain is usually felt on the side and intensifies when in an upright position.
Despite POTS itself https://heliskidirectory.com/listings13158413/postural-tachycardia-syndrome-and-right-sided-rib-discomfort