This is called "worry time" and it has helped me in the past.
Another article describing it is here: https://healthypsych.com/psychology-tools-schedule-worry-tim...
It's not a silver bullet but it's a useful tool to have in one's toolbox.