Hello!
Feeling restless and having continuous thoughts can be draining but they can cause sleeplessness. If you really want a medication, you can visit a psychiatrist. But at the same time, it's better to resolve with issues that are troubling you, issues that are causing restlessness and constant thoughts. You can visit a psychotherapist for the same.
Next Steps
1. If medication is needed, visit a psychiatrist
2. if you want to resolve the issues, visit a psychotherapist
Health Tips
Avoid using alcohol/drugs