It's impossible to sneeze while sleeping.

It’s impossible to sneeze while sleeping.

Sneezing may even be triggered by lying on your stomach, back, or side since your mucous membranes swell in these positions. However, researchers have concluded that sneezing is not possible while you are asleep. The reason you don’t sneeze when you’re asleep is that your body suppresses sneezing impulses as you go through the cycle of sleep.

Source