Overanalyzing things my partner says

Lately I've been overanalyzing things my partner says. If he makes a joke about something I think is inappropriate or says something inappropriate or odd I start to overanalyze and think the worst things about him like he's a sociopath, pervert, or even questioning his sexuality. I KNOW he's a good person and that my thought spirals are just thought spirals, but my OCD makes me doubt his character or question things about him and it gives me such anxiety. I hate this feeling and wish I could just let things go but my mind won't. Has anyone experienced this in their relationships? And how were you able to move past this?