Usually, when the bladder is full, you will be stimulated to wake up to urinate, but when you are too tired, you will urinate with the progress of the dream, relax the contraction of the bladder sphincter in the dream, and even wet the bed is considered as a dream.
It is suggested that you should not be too tired during the day, rest early, don't drink too much water before going to bed to slow down the bladder filling time, and try to sleep until dawn.