Sleep disturbance, unwanted thoughts could be part of Depressive/Anxiety disorder especially in the background of stress. Kindly consult a Psychiatrist for thorough evaluation and treatment.
Next Steps
Consult a Psychiatrist.
Health Tips
Avoid excessive caffeine, have regular physical work out, try to do something which you like, stay positive.