Death during pregnancy

Kirby • 22. Can't wait for my baby boy to get here! Hurry up August!
Has anyone dealt with a death during their pregnancy? My grandfather just died and I cried so much last night and I know stress isn't good for the baby but I can't help it. I am 18 weeks and barely showing and I just feel like somehow I hurt my baby boy. I can't lose this baby after losing my grandpa. Maybe I am just thinking crazy because I am hurt. Words of encouragement anyone? Please?