ERROR: ROBOT OUT OF REACH

I’m doing simple robotic simulation where I’m jogging the robot and adding points. But when I’m running the simulation sometimes (not always), it shows the error: " The position is out of reach for the robot", even if it is in reach for the robot. The issue gets resolved once I restart the program. Could anyone suggest why is this happening, any problem with my way of programming or is it a bug?