Adding safeties to Ratio string import to prevent crashes on numbers which overflow during GCD calculation