If you can't sleep, then get up and do something instead of lying there worrying. It's the worry that gets you, not the lack of sleep.
As a writer, you get to play, you get alter time, you get to come up with the smart lines and the clever comebacks you wish you'd thought of.