https://en.shafaqna.com/209236/qa-if-a-person-fasts-believing-that-their-health-will-not-be-harmed-however-after-fasting-they-were-indeed-harmed-is-their-fast-valid/
Q-A: If a person fasts believing that his/her health will not be harmed, however after fasting, he/she was harmed, is the fast valid?