OCD ,waswas and fear of death

OCD ,waswas and fear of deathCategory: ReligionOCD ,waswas and fear of death
Obaid asked 2 years ago

Assalamualikum I am suffering from OCD for last 4 years as a result of which I get ill thoughts related to fear of death.I always offer namaz and fasts regularly. But sometimes I get thoughts like if will fast for all days of fasting then I will die which leads to anxiety,panic and depression. So Can I skip some fasts.Is it a shirk?Or I will be thrown out of Islam.Please answer.