Help Regarding ERC20Capped extension

replace your _mint function with this

function _mint(address to, uint256 amount)
    internal
    override(ERC20, ERC20Votes)
{
    require(totalSupply() + amount <= 5300000 * 10 ** decimals(), "Max number of tokens minted");
    super._mint(to, amount);
}