Prevent chemicals?

I have had 2 chemical pregnancies in the last 6 months. Is there anything I can do to prevent it from happening? Is there anything the dr can give me to help?

I was 3 days late with this pic but then started bleeding 4 days later so late a totally of 7 days. This is kinda what started my ttc journey

3 months later

I got this at 13 dpo and started bleeding shortly after

What’s wrong with me? 💔