I don’t want to feel this way

I had a miscarriage in July and it was horrible. My best friend shortly after got pregnant. I cried when I found out. Then she found out it’s twins. I want to be happy for her. But I’m so jealous and I hate it, it feels so ugly. I don’t want to feel so jealous because I am happy for her but it’s so painful to hear about. Anyone have any perspective they can share that would help?