Welcome to e health forum.
The severity of the pain and the history of a abdominal surgery after a miscarriage, indicate the possibility of abdominal infection related scarring.
Other causes of such kind of pain can be due to
1. Musculoskeletal pain disorders
2. Functional disorders - chronic fatigue syndrome, fibromyalgia, etc.
3. Hepatitis or Cholecystitis (gall stones)
4. Renal stones
5. Pneumonia of the Lower lung lobes.
In such a situation, when the diagnosis is not obvious by the history, you would benefit by consulting with your doctor for a physical examination and a few tests can help in deciding the further course of action.
In the mean time, you can try to control the pain with OTC medications like advil, tylenol, etc.