Hi there, thanks for asking. If you begin a sexual behavior in sleep it is called sexomnia. It is one of the disorders related to deep sleep like sleep talking
and sleepwalking. People who ave such a condition, begin their deep sleep soon after falling into sleep. It could be a single problem or it may be seen beside other issues like sleep talking, etc or even sleep apnea
. You should ask your doctor to assess your sleep. Sometimes, they are seen with seizures at nights, so epilepsy
possibility should also be assessed. I wish you a good health.