How to solve "this auth is already used" Error

In Moralis User Object when consider a scenario like this,

User A has linked two accounts [x , y]

User B has an account [ z ]

When we trying to change the account between x and z , Moralis.onAccountChange event is triggers but there is an error,

    "code": 208,
    "error": "this auth is already used"

Is there any way to to solve this issue?

What code is run on your side when that account change happens? Maybe it tries to do link again

Yes @cryptokid, It tries to link with the that account. Is there any way to prevent linking, when User already created in Moralis?

you could ask the user if he really wants to link that account, check if that address is already used by a uses with a cloud function