Sure, they’re human and humans make mistakes. It doesn’t mean I (or my husband and kids, in the case of OP) have to be there while you work them out. Work them out and try again in a few years. More likely than not, staying will just enable them and they won’t be motivated to fix the issue.
Life is hard. Parenting is hard. Being in a relationship is hard. Why would OP add an extra layer to that by having to worry when they’re going to demonstrate their shitty racist beliefs in front of the people she loves?