I'm sorry you had to go through this. But remember most of us have been in your shoes. Most likely, the family member who is yelling at you.. is not mad at you. They are mad at themselves, their relationship with their relative, the circumstances etc. It is not your fault and try not to take it personally. The first time a family member ripped me a new one, even after giving her honest and compassionate information about her moms care, I was in tears(I didn't let her see that though).
I had an instance a few months ago that still sticks to me like glue, this one family member was so demanding.. no matter what anyone said or did .. she wasn't happy. I feel I handled the situation well and was complimented and thanked by administration at the end of the day.
One of the best assets you can have as a nurse is learning to deal with people who aren't happy, and know that.. you can't make everyone happy.