Raise ValueError when iteration hits a truncated line rather than silently exiting.