The following error message can occur when performing a transaction in MetaMask:
In this case, start by reinstalling MetaMask on your device.
Before you uninstall, make sure you have your Secret Recovery Phrase and seed phrases (or private keys) imported accounts). You do not need to have your MetaMask password, as you'll have to choose a new one as part of the restore process anyway.
For details on how to restore your account after reinstalling MetaMask, please refer to this article.