I believe I've read that the typical fasting done during Ramadan said to be healthy (assuming you're already healthy to begin with, and yes, I mean medical literature, not religious) and I believe falling asleep when you're hungry is also natural for a lot of people, so I'm not sure it's unhealthy.