It seems like you are facing some very stressful situations and it is taking a toll on hour sleep and overall functioning.
Next Steps
For sleeping pills you will need to approach a psychiatrist who can properly examine all your symptoms and concerns and prescribe the same.
Other than that, I would suggest that from a long term perspective, you would need to speak about your worries and stresses with someone. It can be mental health professional (ideally), but if not, then talking to a close friend, family member you trust or anyone else of your choosing.
Some deep breathing exercises before sleep may also help you relax.
Listening to soothing music or sleep inducing guided meditation over headphones may also help you sleep.
Putting away all digital screens at least one hour prior to sleep also helps is better quality sleep.