Hi
Sleep is important biological function. Sleep disturbances may lead to various physical and psychological problems.
Since you have described your sleep pattern got disturbed and associated with rumination at night, it appears to be a symptom of anxiety. It may be possible that you might have been going through some situation such as family matters, professional issues or any other hardships.
Next Steps
It is necessary that you CONSULT mental health care provider. You may choose to consult a nearby doctor or online.
Mental health care professional is trained to identify the problem exactly.
Till then……
Stop worrying about trivial matters.
Look at your problems, try to understand them objectively and deal with them one by one.
Try to find help from your friends, relatives and close ones whom you can confide in.
Stop using any addictive substance and junkies.
Reduce screen time as much as possible. Not at all before bedtime.
Take full two full meals, healthy snacks.
Start exercising.
Hope this helps
Take care and stay healthy