What's the correct way to throw an expected error? (TypeScript server)

I noticed that Nakama has a built-in retry mechanism if the RPC request to the server resulted in error.

However in my game, for example, when a player requests to merge three items together, we do some validation, and if the validation fails, then we return an error, like this:

throw new Error("Merge items are not compatible.");

My question is, will this kick off Nakama’s retry mechanism in the client? As that would be undesired because the client will try to resend the exact same incompatible items and will result in the same validation error returned.

Is this the right way to throw an expected error, or do I need to do it a different way? Essentially, don’t retry when expected errors occur, such as validation errors, and only retry if it was a true error, such as the server didn’t respond or is offline, etc.