MethodHandleInvalidStepInvalid steps can happen due to a number of reasons, and we allow a limited number of consecutive failures, and return false if this limit is exceeded
VINS_ThirdPartyLib/ceres-solver/internal/ceres/trust_region_minimizer.cc:429