Hi @mkrana173,
This seems some issue with the dependencies already present. Are you upgrading just modal SDK to 6.1.7? I would request you to upgrade the walletconnect v2 adapter as well to the latest version.
@mkrana173 Looking at the error stacktrace my best guess would be upgrading the @walletconnect/utils to v2.9.2. I feel if you run npm i -S @walletconnect/utils on the terminal, npm will install the latest package for you.
The things as per the error log, I look at some imports not being found in the @walletconnect/utils which are needed in the walletconnect v2 adapter. Let me know if this works for you.