System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
Obviously in your CSV file there is something that you try to parse to an integer, which is causing the issue because input string is not parseable to a number. Not seeing the CSV file, nor the code reading and parsing from it, prevents us to say more about that.