The Postgres query parameters one is funny. 65k parameters is not enough for you?!
Sqlite used to have a limit of 999 query parameters, which was much easier to hit. It's now a roomy 32k.
We probably should have been partitioning the data instead of inserting it twice, but I never got around to fixing that.
COPY is likely a better option if you have access to the host, or provider-specific extensions like aws_s3 if you have those. I'm sure a data engineer would be able to suggest a better ETL architecture than "shove everything into postgres", too.
is even funnier :D