Getting Invalid user signature error on calling smart contract

When calling a smart contract function from Sui wallet I am getting this error:
Error: Invalid user signature: Signature is not valid: General cryptographic error: Groth16 proof verify failed
What is the reason behind this and how to resolve it?

Can you give more details about what are you trying to execute and in which environement (dev,testn mainnet) please

This problem is part of this question on the forum:
https://forums.sui.io/t/calling-smart-contract-function-from-react-frontend/45352
@teohaik