imposed upper limit of 65535 on numberOfTilesExpected to avoid freeze in case of corrupted XSiz fields