stress and grieving during pregnancy- losing a loved one

My father in law has been ill the past year and just was put into hospice yesterday. His days are numbered and my husband and I have been extremely emotional and upset knowing he won't be here to meet his grandchild. I'm wondering/asking for advice dealing with this sort of thing during pregnancy and how to get through losing him and a funeral. Has anyone else been through a loss while pregnant? Should I be worried about the stress on my baby? Any advice would be very appreciated🙏🏻😰