Make sure requested offset is less than file size