chemical pregnancy

Ju
So all my fears came true, i had a MC on monday, my doctor told me he thinks it was a chemical pregnancy. I am absolutely heartbroken. But me and my SO want to start trying again immediately, im just nervous that getting pregnant too soon can cause the same thing (and i cannot do this again :/) does anyone have experience with this? This was my first pregnancy so any advice helps!!