There are 5 sleep disorders
Nightmare disorder, sleep terror disorder, sleepwalking disorder (somnambulism), REM sleep behavior disorder, restless legs syndrome (RLS), and periodic limb movement disorder (PLMD).
I think the scenario you mentioned here comes under REM sleep behavior disorder (RBD),
As we know …. Normal sleep has 2 distinct states: non-rapid eye movement (NREM) and rapid eye movement (REM) sleep.
NREM sleep is divided into 4 stages.
During REM sleep, rapid eye movements occur, breathing becomes irregular, blood pressure rises, and there is loss of muscle tone (paralysis).
However, the brain is highly active, and the electrical activity recorded in the brain by EEG during REM sleep is similar to that recorded during wakefulness.
REM sleep is usually associated with dreaming and REM sleep accounts for 20-25% of the sleep period.
In a person with REM sleep behavior disorder (RBD), the paralysis that normally occurs during REM sleep is incomplete or absent, allowing the person to "act out" his or her dreams.
RBD is characterized by the acting out of dreams that are vivid, intense, and violent. Dream-enacting behaviors include talking, yelling, punching, kicking, sitting, jumping from bed, arm flailing, and grabbing.
An acute form may occur during withdrawal from alcohol or sedative-hypnotic drugs.
RBD is usually seen in middle-aged to elderly people (more often in men).