According to new research, your memories could become distorted, especially when you're sleep deprived. And it is not the good kind of memories either.

The researchers experimented with participants by showing them pictures of crime being committed after pulling an all-nighter.

Because they lacked sleep, they read statements that contradicted what they witnessed. When they took a memory test, they were more likely to report the fake details from the statements as being true. 

According to preliminary reseach, the study found that sleeping for five hours or less had detrimental effect on memory too.

This definitely explains this:

And how this guy came about: