I heard a sleep expert say that during the night your logic and reasoning abilities are greatly reduced. I think it was in relation to dreaming, you don't want to apply much logic to that stuff.
That's why trying to solve problems in the middle of the night just ends up in stress.