I have issues sleeping often, 4 days a week for some stretches (of course it could be worse). It's almost always because there is too much on my mind, usually I'll go and sit in the dark playing guitar, or
(I find the repeated tetromino patterns distracting and mildly soothing).