I exported users in CSV format with the Admin > Users > Export button. While the file is substantially valid, it’s rejected by many tools (like miller or parsing libraries) because not all lines have the same number of commas/fields. It looks like your exporter omits commas when last fields have no value. While this looks reasonable, it looks like it breaks the formal specification of CSV files.
Discourse version: the one used as of now in your hosted forums