Welcome to HCM
We understand your concerns
From your description it seems that you were stressed and anxious. As you already know, people urinate while they are in such stressed state of mind.
Night falls (ejaculation while sleeping) happens when we get sexually excited or while seeing some terrifying dreams. Our body produces semen every time we get aroused. It becomes a waste product then and body has to throw it out.
In your case, Body just found an occasion to throw it. That is it.
Just don't worry.
Find a psychologist
and get a counseling for your stress.