I need help

My friend just lost her baby mid pregnancy... we were due w/ in weeks of each other. I feel so much guilt, I’m not sure why... then i feel selfish for making this about myself. It has broken me down. She’s an amazing person, and I know she really needed her son, he was her first. I’ve been checking up on her, it’s still REALLY fresh and but I really don’t know what to say to her. I feel so bad then I feel bad that I even feel bad. I don’t have anyone to talk to about this.