One way to combat this (if you’re physically capable): long distance running without headphones.
It forces you to focus on one thing alone: finish your route. I’ve found that my mind wanders, but the pain exerted by running for an hour or so inevitably brings you back.