Rheumatoid arthritis can have involvement of heart as carditis or may involve the heart valves.
Since the pain is non specific it appears not to be related to heart . Also you don’t have palpitations and breathlessness on exertion so clinically cardiac involvement may be ruled out.
Females at your age mostly have musculoskeletal pain due to osteopenia of ribs or shoulder joints too
If it is cyclical with menses then could be hormonal.
Next Steps
Looking at history of RA, I would suggest an ECG and Echo for you.
If normal then rule out GERD and Acidity