trauma?

so i had just found out a little while ago i had a ectopic pregnancy which led to a miscarriage, was able to save my tube and it went fine, everything was fine. but now i just feel very alone and like i did something wrong. it was never planned but finding out that then getting told a couple days later that i wasn’t able to keep it kills me. am i wrong for feeling this way? or is it normal? if it was up to me and was safe i would have kept it but i had no choice and it feels like i got that ripped away from me.