Thanks for the query.
Some amount of pain abdomen can be there in early pregnancy due to the growth of gestational sac
But this much of pain is somewhat abnormal.
That too as you had previous history of miscarriage, better to be careful.
So better to consult gynecologist or go for emergency room and get examined.
If there is premature uterine action, rest, tocolytics, progesterone
supplementation may help.
Along with that rule out other causes of pain abdomen like urinary tract infection
After decreasing of the pain also, better to be progesterone supplementation for few weeks, till you cross the gestational age
when you had miscarriage in previous pregnancy.
Then continue with regular antenatal checkups.