I have had that issue. I remember one specific time 12 years ago I couldn't get to sleep because I couldn't remember the difference between a sociopath and a psychopath.
FYI a sociopath has a sense of right and wrong, but it exist independent of social norms. A psychopath knows right and wrong and doesn't care.
It has been quite a while since I have had the issue. As I entered my mid 30's I had a real issue with insomnia. Before I started on the drugs, I wanted some better ideas. I posted on here and got some good input. I will give you these and take them or leave them.
1st - First from Dr Hess; TVs don't belong in the bedroom. So many people fall asleep with it on and wonder why they sleep poorly. It's lights and colors and brain stimulation. Get rid of it. Same for the iPhone, iPad or laptop.
2nd - Watch your caffeine intake. I used to drink a cup of coffee then take a nap. No more. In fact, if I want to sleep at a reasonable hour, I can't have any caffeine after 2. That includes a coke with dinner. Also watch your volume. I get two a day, three in extreme cases (I have to be up early, had to stay up late, at a racetrack, etc).
This also applies if you use tobacco. Nicotine is a stimulant.
3rd - Exercise. Find something that exhausts your body. Running swimming, biking crossfit, lifting, do something. and do it. If you have every had a dog or a child, you know they behave better when they get a little exercise and the blood pumping. I would submit your brain isn't much different. I can tell how well I sleep when I run vs days I don't. Having a physical job is not the same thing. I ain't saying it ain't hard, I am just suggesting the brain sees it differently.
4th. - Your bed should exist for only 2 activities. One of them is sleeping. Humans are creatures of habit and you need establish your bed as a sleeping zone. Not eating, watching TV, or anything else other than the other thing. By doing so, you set up a behavior where your brain recognizes cues when you go to bed and starts to wind down.
5th - Don't be afraid to spend some coin on a comfy mattress. If your brain is up, it might be responding to body stimuli, because you aren't comfortable.
This will not work immediately, you are training your body and your brain. It takes some commitment. The wife and I have had some terse discussions about her iPad in bed after I am asleep. The lights and motion do affect me.
I am also not a doctor, this is what I researched and what worked for me. Dr Hess is actually a Dr, and knows quite a bit about the brain. I hope he weighs in here.