Catch and avoid a 16-bit integer overflow on the number of columns in a