All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
In principle, it is obligatory on you to observe fasting in Ramadhaan, and the obligation in this regard is not waived unless it is proven by experience or a doctor’s note that fasting is harmful to you or constitutes an unbearable difficulty. In this case, it is permissible for you not to fast, as evidenced by the Saying of Allah, The Exalted, (which means): {…and whoever is ill or on a journey – then an equal number of other days…} [Quran 2:185]
Jurists stated that the illness that warrants not fasting is the one that makes it difficult for a person to observe fasting, or when it is feared that fasting might worsen his condition or delay his recovery. Ibn Qudaamah said: “The nature of the sickness that permits not fasting is intense sickness that worsens by fasting or if it is feared that recovery would be delayed as a result.” [End of quote]
An-Nawawi said in Al-Majmoo’ Sharh Al-Muhaththab (6/258): “This applies if he faces obvious difficulty by fasting, without need to reach a point when he is unable to fast as a condition for the permissibility of giving up fasting. Rather, our companions (the Shaafi‘i scholars) said, ‘The condition for the exemption from (obligatory) fasting is that it would cause a person such difficulty that is hard for him to bear.’” [End of quote]
This is a manifestation of the Mercy of Allah, The Exalted, bestowed upon His Slaves and relieving them of hardship and inconvenience. Allah, The Exalted, Says (what means): {and He has not placed upon you in the religion any difficulty.} [Quran 22:78]
If your state is as described above, then it is permissible for you to refrain from fasting. If your sickness is curable, it is incumbent on you to make up for the missed fast days after recovery. If your sickness is incurable, then you should opt for feeding a poor person for each missed fast day. We ask Allah, The Exalted, to bless you with recovery.
Allah Knows best.