Successful pregnancy after an ectopic

M
Hi there - today I miscarried at 4 weeks 2 days. It was ectopic. The dr suspects that I will pass the embryo naturally and is hopeful that my tube won't rupture. I am now really concerned that this will happen again, or why it happened... Is there something wrong with my tubes? Underlying fertility issues and so on. My mind is going in all sorts of directions. Has anyone experienced an ectopic and went on to have a safe and healthy pregnancy/ baby?