Easy: eat something easily edible, or drink something with lots of nutrition (and/or sugar) in it, and then sleep. Not eating might cause a headache, and thus bad sleep.