Hello Friend, Good that you are seeking a help. Your may be under depression or anxiety and those emotions are causing sleep disorders. May be you are over thinking about not having a child.
You may need a guidance of counseling support to figure out the reason or root cause for such emotions and also to identify a suitable solution to overcome
Next Steps
Consult a psychologists directly or online. Feel free to reach me online for further evaluation and recommendation. Be confident. You will be alright soon