I am diagnosed by Muslim doctors with OCD. I get unspeakable thoughts about Allah, Islam, etc, and then I feel guilty or become worried if I said them, which makes me repent for apostasy and do ghusl. Do these thoughts take me out of the religion, and can I keep doing tawbah for all kufr to be safe?

Ustadh AbdulAziz al-Haqqan
No. you are not held accountable for any of this.