Delete current User and return another user instead

Hi, I’m trying to keep my auth0 users clean and not linking accounts when user logs in, so I remove not link login user and return existing user as context.primaryUser. Sometimes it works and sometimes I get error “Oops!, something went wrong. You may have pressed the back button…”. Is this kind of flow breaking the system or what might be the reason for this?