You know, "confessing" is one classic form OCD can take. Sometimes it even takes the form of confessing to things you didn't do.
Don't beat yourself up over your OCD - it is a brain illness involving the basal ganglia. You do need to recognize it and get help for it, and it might be fruitful to apologize to your W for the corrosive effect that it probably had on her self-esteem. Medication can help, strep infections can sometimes be a trigger (as can Lyme disease) so it can be worthwhile to screen for those.
All that being said - your wife's behavior towards you at present is pretty inappropriate and dysfunctional. You may want to think twice about whether she is capable of being in a healthy relationship with you once your OCD is managed. I'm guessing HER problems are bigger than yours.