Why is the intersection calculated incorrectly?

I consider the intersection of the vector on the camera as 500 long (does not depend on the arm length). When crossing with vertical surfaces, everything works correctly. When crossing with an inclined surface, the camera loses the intersection point after reducing the arm length (I do not touch the camera vector, I only reduce the length). Why can this happen?

Video:
https://www.youtube.com/watch?v=Cv7E-gBVqRQ