A new study found that sleep deprivation weakens the brain’s defense against unwanted memories, letting them flood your mind.