Check if unit conversion is valid
Currently it is possible to run the code with variable conversions which produce variables which are too large or too small to store in a float. This bug can produce variables in the snapshots to become infinity while running all calculations. This merge request solves this bug.