As Wes says: "The error is perfectly clear. One or both of those strings cannot be converted to an int."
So you have to detect that, and report it back to the user, instead of continuing.
Have a look at the
Int.TryParse[
^] method - it returns true if the conversion was ok.