The pathfinding events weren't considering the "State" value. So whenever a ship failed to find the path, doesn't matter in which mode they were in, they would all follow the last "on pathfind failed" on the list. Putting these events as sub-events makes it so they are being applied to the right ships
It's important to read this manual page: https://www.scirra.com/manual/75/how-events-work
Correctly picking your objects is one of the most important aspects of C2