Maybe "algolagnia", is that it? It's a hoary old term dating back to old man Krafft-Ebing I think, meaning, literally "love of pain" and it covers both sadism and masochism
Hope your family life works out, Annie, and that you'll find the strength to do what feels right. I certainly wouldn't want to tell a marriage counselor (or a lawyer) about my masochist side.