There is a condition named Exploding Head Syndrome in which you think you hear a loud bang as you fall asleep when none exists.