Back and forth on very simple path

My object that I need to get to a point keeps returning to a node that it’s already walked over and starting from there. This happens at seemingly random intervals so I’m very confused. Any idea what’s going on?