Thank you for asking. I can understand the distress you are through. It appears to be a problem of premature ejaculation. A condition in which the time for ejaculation is short. At times slight sexual arousal can lead to precum. Spontaneous discharge at night is also common. Multiple factors such as stress anxiety, masturbation habit, pornography use, lifestyle associated risk factors, etc needs to be explored in details. These have an important implications on one's sex life. A detailed information regarding these is needed. If needed suitable medication and instructions can help you overcome this problem
Next Steps
I suggest, you must consult with a sexologist. For more information regarding this problem, you can also post a direct query here on practo.
Health Tips
It can be completely cured. Do not worry.