Hello there, lybrate-user! It is harmful to eat or drink when sleeping because the food or water may enter the windpipe and choke you. The optimal position to drink water is while sitting so that the water may stay in the stomach and accomplish its job of properly digesting the meal.