Thanks for asking. Your problem is suggestive of a condition called premature ejaculation. The threshold for ejaculation is short and spontaneous discharge during night is very common presentation. With suitable medications and instructions it can be completely cured.
Next Steps
Kindly consult with a sexologist for further management and detailed instructions.
Health Tips
Don't worry. It is treatable.