Please check if the angle between two walls is greater than 90°.
If so, sometimes an error may occur, making the robot enter an unending cycle of climbing up, climbing down, locating the wall.
Solution: You need to break the cycle for it by taking it out of water, restarting it and then putting it back to the pool.