Postgres COPY command gets Error: out of memory
DETAIL:  Cannot enlarge string buffer containing 1073741632 bytes by
  349 more bytes.
  CONTEXT:  COPY column_name line 13275136


According to the error message, the offending row at this line number in the file is too large to be imported. COPY uses an internal buffer per row that can only grow to 1GB. It's impossible to import or export larger rows with COPY in existing versions of PostgreSQL (up to and including version 12)