Hard to be happy for others

Just found out my sister in law is having baby #2. I love all if my nieces and nephews and I love being an aunt but after 4 pregnancy losses, the last one was the most devistating last year, it is still so hard to be happy for others. I feel selfish for having those thoughts but my pain over takes my happiness. Any advice on how to deal with this?