Cause:
The error is too large when fitting a line or plane.
Troubleshooting:
When fitting a line, check whether any points are not on the line;
When fitting a plane, check whether any points are non-coplanar;
Solution:
Modify the point information used for fitting.