I'm having a problem with Metamask, I'm trying to withdraw some tokens from a locker (deeplock.io) but every time I try to do the operation this message is shown below the gas fee row: "transaction error exception thrown in contract code".
Have you tried to increase your gas limit in your transaction. This may help you but it doesn't mean this way will always work. There are so many possibilities can happen just like the problem in the code in the smartcontract.
What's really strange is that the token works perfectly and this message keeps popping out even when I'm not dealing with this token (for instance, when I try to call some functions on the bscscan's page of a completely different token, it shows me the exact same message),
That's quite strange. Have you checked the code in your function? Maybe there is something wrong with it.
I'm starting to think that there's something wrong with my Metamask wallet.
This problem will not always relate with metamask. Sometime this can relate with the wrong code or function that already created.