Some medicines used to treat OCD, especially a class called SNRIs, are well known to cause trouble releasing semen during sex as a side effect. This is a common, recognized issue tied to your treatment, not a separate fertility problem.
Next Steps
Please discuss this with your psychiatrist, since a dose or medicine adjustment is often possible without disrupting your OCD treatment. A semen analysis can also check your fertility baseline alongside your partner's workup.
Health Tips
Please don't stop your psychiatric medicines on your own, since that risks a relapse and may not even resolve the issue.