Therefore, don't eat before going to bed, especially when you are full.
As for nightmares, it is because the brain can't get reliable adjustment time, and people don't enter a deep sleep state. It may be because the stomach is digesting, the blood circulation is accelerating, and some parts of the brain are moving, which will make people enter a hazy state, like sleeping instead of sleeping, so that they have some messy dreams. Dreams are illusory. They are the brain's self-regulating response. When people are tired, weak or overeating, they have many dreams.