I dont know it this is OCD or just bad anxiety but the thing

I dont know it this is OCD or just bad anxiety but the thing that relieves my anxiety when i feel like im going to throw up ( which is a HUGE phobia of mine) is hurting myself my digging my nails through my skin causing myself to bleed. When i really think about it i know its screwed up. I also refuse to wear certain items of clothing that i have worn when i was almost positive I was going to get sick. What is this?

I by no means am no doctor but it might be some form of ocd. a doctor would give you more guidance as to why you do this. honestly, just take a few deep breaths. do whatever calms you and don't worry about throwing up cuz that will only make it worse.