If you want to sleep well, you should not only make yourself a little tired, but also do not eat before going to bed and keep your stomach empty. This is an important place. If you eat too much food before going to bed, bloating will also make people have nightmares. Create a warm bedroom environment and don't put too many sundries, especially electronic equipment, such as computers, televisions and even mobile phones, which will radiate and affect people's sleep quality, especially those who can't enter deep sleep, and the interference is more serious.
Keep an optimistic attitude at ordinary times. Dreams are sometimes your unreal imagination, or your autonomic nerve's unreal record of external stimuli, which is fed back to your brain, and your brain is in a light sleep state, recording these incomplete signals. It should be said that many such situations will happen when everyone sleeps, but some people's brains are in a deep sleep state and don't care about these things at all, so they can't remember dreams. It's not that they are ignored.
If you miss the people you love recently, you can take time to go home and see them on weekends. After all, it is a happy thing for a family to spend a happy weekend, and it will not change because of dreams. There is really no need to worry too much about these things. The serious thing is to spend your mind on the present and the future, put down your psychological burden, live happily and work hard.