One who cannot sleep should bring to mind faith in the resurrection of the dead.
Sefer HaMidos, Faith, Part II §17