Fixated on an obstacle? Then you'll probably hit it. The gaze pulls the bike along, for better or worse. The way out is to turn the whole head away from the problem and towards the solution.
First notice when your gaze sticks to something. That's the moment. Then turn not only your eyes but your whole head to the gap. You can practise it in calm situations so that it works in an emergency.
Gaze guidance is one of the most important tools in the saddle. More in the Focus Session.