added safeguard to choose_eigv_solver() in BFGS