You didn’t mean to hurt your spouse. Sometimes, you can’t know in advance how your words, actions or inactions might land on your spouse. Something may trigger a memory or a sensitivity.
Validate their feelings.
Acknowledge that what you said or did brought up negative feelings.
And then say, “I’m so glad you told me. I didn’t realize. Now that I know, I hope to do better.”