The principle of dreaming is that some brain cells are still active without complete rest. If a small number of brain cells are active, they will dream less, wake up in the morning and will not remember, and will not affect the quality of rest. If there is too much brain cell activity, it will definitely affect the rest, and it will be "groggy" during the day, which is actually not a good rest. I suggest seeing a doctor.
I had the same phenomenon. My treatment method is to take a box of cinnabar sedative twice a day and take a sedative tablet before going to bed at night to help sleep for a week. I'll be fine. If it's not good enough, I'll drink this soup, the doctor said, but it will be fine for a week.