How soon did you get pregnant

M

How soon is it safe to get pregnant again? I had a mc 3 weeks ago and I’m desperate to try again but doctor said to wait until after my next period. I don’t have a regular cycle (like 60+ days) and I don’t want to wait that long. Has anyone gotten pregnant immediately after a mc and been fine? I’m scared of another mc if I don’t wait long enough.