Talk with the doctor
Two miscarriages in two years is unfortunate, but it may simply be a matter of luck.
Some women with blood clotting abnormalities are more prone to miscarry, and may be advised to use low-dose Aspirin - but please don't do with without a proper diagnosis. Aspirin has side effects, too. And it might not be the right treatment. See your doctor about this; they may do some blood tests to look further.