Chemical pregnancies

In the past two months I’ve had two chemical pregnancies, I want this to be our month. Is there a way to avoid them? My doctor confirmed it to be a chemical but I completely spaced asking if there were preventable measures