Should I go get checked??😩😔 where did I go wrong?

About 2 years ago i was bleeding a lot and had pain and went to my doctor and found out I was pregnant and when I had an ultrasound done the doctor said they couldn’t find the fetus or a heart beat. I was told it was most likely an ectopic pregnancy. Then she took more blood work and told me it was going to be an abnormal pregnancy and I should terminate either way whether is was ectopic or not. Honestly I was in such shock and my emotions were everywhere so I can’t clearly remember why everything was done the way it was but she did a procedure where she scraped my uterus and because nothing came out they confirmed it was ectopic and gave me a pill to terminate. Does any of this sound familiar to anyone? I’m trying to put together what was done and why in that order...

I am trying so hard to get pregnant now and nothing!! I feel like what happened has something to do with me struggling so much to get pregnant. Is there some sort of testing I can get done to see if something is wrong because of my past pregnancy and that’s why it’s hard to conceive again?