I am getting the below error while deploying a contract locally using hardhat.

Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE\_GAS\_LIMIT ] (reason="Transaction reverted: trying to deploy a contract whose code is too large"