If you are experiencing pain, especially severe or long lasting pain, see a doctor. Your body is telling you something is not right and you need to see a professional. Be sure to explain your medical history including your joint cracking. If your doctor doesn't understand your situation ask for a referral to a specialist.
Hope this helps.
Steve