I have been using this code sample: https://stackoverflow.com/a/54556903/10023098 to extend CsvWriter.WriteField and implement leading zeros.
CsvWriter.WriteField
With CsvHelper