Check if the value of a ConstantInt is small enough to be used for solving before calling getSExtValue. Fixes #55085