Hi, Welcome to HealthcareMagic
Spontaneous ejaculation is mostly normal, and happens during adolescence in many individuals. This is due to the stimulation while you move in bed during sleep, when there is contact with the bed surface. However, if this symptom is of recent origin, and you have other associated symptoms, it is better to consult a surgeon/sexologist
in this regard.