Rhogam allergy

I fount out with my miscarriage that I am Rh- and I had received rhogam. I later had a moderate to severe allergic reaction to the shot. My face, tongue, and throat were swelling and I was covered in hives. Do you know of any alternatives to the rhogam shot or is it dangerous to get pregnant again in the future?