You can remember the meaning of 过夜 with this easy mnemonic:
He asked me if I wanted to spend the night, but I told him I'd pass (过). I'd rather spend the night (夜) in my own room.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.