I mostly solved my sleeping issue after many years of trial and error by having a speaker by the bed and then on low volume play a podcast that's interesting enough to listen to but not interesting enough to keep me engaged. This helps me by keeping my mind focused on something unimportant instead of racing around, when I inevitably try to focus on something else it's drowned out by the podcast.