Contacts → Import, done properly: your file's columns thread themselves to your fields, bad cells become fields you fix in place, and the rows go to your server in batches.
pnpm dlx shadcn@latest add "https://hairlineui.com/r/csv-import.json"