Preventing chemical pregnancy?

Unfortunately I suffered a chemical pregnancy this past week. My partner and I are going to start trying again this upcoming month but I really want to do as much as I can to prevent another chemical. I have endometriosis so i’m not sure if that has anything to do with it, but has anyone else found anything that works for preventing chemical pregnancy? Did anything help y’all get pregnant fast after having one? Thank you so much in advance and baby dust to all :)