Trying not to think of it fails; containing it works. Give grief a window instead of the whole day.
Every time a distracting thought pops up, imagine putting it in a box for later.