`[contract creation code storage out of gas]` error when trying to deploy upgradeable contracts on Polygon

There is now a txOverrides option, which overrides transaction parameters in Ethers v6.

For example:

  await upgrades.deployProxy(MyContract, ['My initializer arguments'], {
    txOverrides: { gasLimit: 1000000n },
  });