Facing Total Supply error in ethers if anyone could suggest something?

Error I’m facing continuosly with ethers.js

CODE

const pair = new Contract(
            pairAddress,
            blockchain.pairAbi,
            wallet
        );
        const totalSupply = await pair.totalSupply();  //LP * (Liquidity Provider)
        if(totalSupply === 0n){
            console.log(`Pair ${pairAddress} is empty, skipping...`);
            continue;
        }

ERROR

Error: could not decode result data (value="0x", info={ "method": "totalSupply", "signature": "totalSupply()" }, code=BAD_DATA, version=6.13.2)
    at makeError (/mnt/d/Sniping Bot/sniperjavascript/node_modules/ethers/lib.commonjs/utils/errors.js:129:21)
    at assert (/mnt/d/Sniping Bot/sniperjavascript/node_modules/ethers/lib.commonjs/utils/errors.js:149:15)
    at Interface.decodeFunctionResult (/mnt/d/Sniping Bot/sniperjavascript/node_modules/ethers/lib.commonjs/abi/interface.js:780:31)
    at staticCallResult (/mnt/d/Sniping Bot/sniperjavascript/node_modules/ethers/lib.commonjs/contract/contract.js:254:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async staticCall (/mnt/d/Sniping Bot/sniperjavascript/node_modules/ethers/lib.commonjs/contract/contract.js:219:24)
    at async Proxy.totalSupply (/mnt/d/Sniping Bot/sniperjavascript/node_modules/ethers/lib.commonjs/contract/contract.js:259:20)
    at async snipe (/mnt/d/Sniping Bot/sniperjavascript/bot_copy.js:61:29)
    at async main (/mnt/d/Sniping Bot/sniperjavascript/bot_copy.js:172:9) {
  code: 'BAD_DATA',
  value: '0x',
  info: { method: 'totalSupply', signature: 'totalSupply()' },
  shortMessage: 'could not decode result data'
}

Node.js v22.5.1
make: *** [Makefile:4: bot] Error 1

I just want that this erro go away I don’t want to see it again and again.