TBH I don't cope. I get that pang of sadness then carry around a heavy heart for hours, sometimes days. A gf is about 17 weeks pg with her third, whilst I scramble through IVF (as well as previous m/c). It makes it even more difficult to deal with b/c I see her twice a week. I have to listen to hear moan about how big she is already and how unwell she is, blah, blah, blah. I know it is not intentional and I would never say anything b/c that is where she is right now, her moment I guess. I think sometimes my emotions are quite obvious on my face but that is something I can't change & TBH I won't change b/c that is how I feel in that moment, right now. I don't know if there is a solution, I think just being and not judging yourself (or others) helps but it won't change how you feel everytime there is a pg or birth announcement.
My gf is due April next year & I am praying I will be pg ny then b/c I really don't want to deal with going to meet her baby if I am not. I know all the emotions it stirs up (from anger, sadness, bitterness) but then I know that I will be happy to meet her baby & be involved in the joy that a new being brings.
Definately keep posting how you are feeling, it will help.