If she lost a child, would you resent her?

If you were engaged to a woman or married to a woman and she got pregnant and then lost it months later, would you treat her badly? I’m mostly just wondering if it’s my fault that he switched up on me. I’m curious if any of you have been through something similar and how you felt towards your significant other?