Bad thoughts after child loss

I had a very traumatic birth and my son died. It was mine and my husbands first baby. I have the worst thoughts about if I had married someone else would this have happened? Or what if I had a baby with So and So, would it have died? My husband had nothing to do with our baby dying. It’s just what if questions that drive me crazy. Also I love my husband dearly, he’s a great man. He’s not doing anything to make me question our marriage it’s just the loss was so traumatic and is hard to accept.

I guess my question is has anyone had these thoughts after child loss?