All errors thrown from the Snap executor(s) should be standardised using a JSON-RPC error format. Related to #1779.