"I think I must have stepped on your toes. That certainly wasn't my intention. I'll try to be more aware of how my thoughts and actions impact you and our relationship."
This is a thoughtful and loving amends (notice that you aren't even really admitting to doing anything wrong).
It is insightful and respectful of your partner's feelings.