Erroneous error when deploying to Polygon Mainnet

Using my Infura RPC URL for the Polygon Mainnet, I received this error when trying to deploy a contract via Hardhat.

Error: insufficient funds for intrinsic transaction cost [ See: https://links.ethers.org/v5-errors-INSUFFICIENT_FUNDS ] (error={"name":"ProviderError","code":-32000,"_isProviderError":true}, method="sendTransaction", transaction=undefined, code=INSUFFICIENT_FUNDS, version=providers/5.6.6)

I had more than enough MATIC in the account I was using. After changing the RPC url to https://polygon-rpc.com, it deployed without issue. My hardhat config specifies the URL and the Account, but no other setting is specified. Do I need to specify the max gas price or something like that?