Add check to avoid corrupt input files whose section sizes are greater than