One way to deal with it is to not expose yourself to the rages. Of course, you can't always sense when they're about to start, but once they do then you can try to exit to give them time to calm down and reset. Can you find a way to go to another room or exit without angering them more?
This is related to Boundaries which appear as a couple of topics on our
Tools & Skills Workshops board. There are other communication skills discussed there. Some approaches such as JADE (Justify, Argue, Defend, Explain) don't work well at all during an emotional ragefest since the other isn't usually responsive to logic. Better skillsets are BIFF, SET, DEARMAN, etc.