I would hesitate putting my head against a flat surface, maybe sitting down would be a better alternative assuming that a few broken bones are OK but serious head trauma is a lot worse.
I think a good solution would be to cross your arms and place them under your head. I'd gladly suffer two broken arms to cushion the impact on my cranium.