ParserError: Expected X fields, line Y when using read_csv with on_bad_lines='error'
Goal: ensure that when a CSV contains occasional malformed rows, the reading step can be retried automatically without causing duplicate writes of already processed data to downstream storage. Constraints: pandas.read_csv does not retry internally; raising a ParserError when on_bad_lines='error' forces the caller to catch the exception and decide whether to