I haven’t had writer’s block. Yet. Or Artist’s block. I have in the past, and still sometimes do, wander down useless paths, as I try to resolved a problem or force a thought that perhaps isn’t worth the effort.
The method I used to avoid the dreaded block. Is to dodge, weave and duck. I think it works for real life, but, caution on that one.