Understanding the sigularity will help you bypass this condition.
in simple terms, when axis 4 and 6 align, the robot is in a singularity condition.
Linear movements will give an error if during the movement, the robot will come close to this condition.
Joint movements are usually used to pass through.
Have you tried using joint movement J?