You are ok. YOU didn't curse the Holy Spirit. It was your OCD and intrusive. If you were happy you did it, then you wouldn't be scared. I used to fear this when I was younger at one time. When it was explained to me, I stopped fearing it.
I am scared today too. But, my fear is...