With your health issues, long periods of fasting will not be helpful.
Consider intermittent fasting, whereby there is a wider window between last meal of the day and first.
https://www.healthline.com/nutrition/intermittent-fasting-guide#what-it-is
If you want to lose weight, you'd be better off cutting down on carbs and eating green leafy veg, and good, unprocessed foods, including poultry, fish, eggs, dairy...and no snacking.