Added catch branch for out_of_range exception that can occur if input file contains a number overflow.