Can NOT sleep! How can this be healthy?

I fully agree that fasting is great for us health wise however I cannot fall asleep when fasting. If I do, it's for maybe 2 hours and then I have to get up for work. I did a 5 day fast and maybe slept 10 hours the entire time and was in agony. How can not sleeping be good for us?? Thanks for all the input.