In a situation where you have the Gender Column and a custom field also called gender, this will cause an error as it's pulling duplicate fields. you'll want to remove one of these fields, and the export will work as expected!