How do I got about this.

So I'm pregnant, and my cousin just had a miscarriage..I told my grandma and she told me that I need to keep my baby a secret and not flaunt it around because it could hurt my cousins feelings. Which I understand but I'm excited and want to be able to be excited about my baby. What do I do.