In postgres max query parameter limit is 65535, so if you have more parameters than that itll throw an error.
So for instance, an insert of 10,000 rows each having 7 columns, will have 70,000 params to be sent to the query and hence it will break.
Keep the parameters under 65535 limit.