Frustrated

I'm 30 years old and just had a miscarriage for my first pregnancy in October I found out I was pregnant in April and was super excited and couldn't think anything else would happen and then yesterday I found out it was an ectopic pregnancy I'm going to lose my mind has anyone had these issues and gone on to have a healthy pregnancy. I'm going to a specialist next week and I have to go to the doctors tomorrow and continue blood work to watch the HCG levels drop. Lossing my mind!