Internal Json RPC error Metamask

Error: Internal JSON-RPC error.
    at events.ts:67
    at Array.forEach (<anonymous>)
    at EventManager.trigger (events.ts:65)
    at WalletConnect._handleIncomingMessages (index.ts:982)

please when I switch to another network, I get the prompt to confirm transaction but if I switch to Avalanche testnet which is where I have my contract, running a transaction gives me the error above

this looks like a duplicate post, what you mean by Metamask in the title? it seems to be related to walletconnect from that error message