How to tell a friend who miscarried I am pregnant

I’ve never reached out here but I’m at a loss. My best friend had a miscarriage 4 months ago. I found out I am pregnant 2 weeks ago. This is normally news I would have told her right away. I worry it will only hurt her, she is already in pain and processing her loss. The last thing I want to do is worsen it. I feel sick all day just at the thought of hurting her further. Is it better to wait, give her more days free of extra pain? I fear she will also be hurt that I withheld from her. I’ve never felt so conflicted. Please Help me to know how be as gentle and loving as possible. Any thoughts from those with insight or similar experience would be greatly appreciated.