Add a catch for linalg exceptions See merge request !1251 (cherry picked from commit 11dde570) 4285034b Add a catch for linalg exceptions 062c5c32 Increase fd_eps