Maybe you are a little tired or nervous.
If the dream is more exciting, it will also lead to mental weakness.
Don't think too much before going to bed. Do some exercise and go for a walk when you are free. Don't overdo it.
Suggestions are for reference only.