I've fasted for extended periods while still exercising and haven't fainted. I've become light headed in the shower etc however whenever I feel light headed I immediately sit down. After fainting once (I was not fasting at that time) my doctor said the best thing to do when feeling like you're going to faint is to sit down.