If the real issue is sleep . . . then go to your doctor, get a sleep study done, so that you can find the underlying causes of any sleep issues. They may prescribe something for the sleep issue.
Common issues regarding sleep quality are: overtraining, training too close to bedtime, stress...