In case the user uploads a file, or extension which is unexpected, then the user should get a proper validation message rather than getting this response “Error while uploading”.
Can you check what is the validator message you have set for in upload node
Can we check it once the user is connected to the agent because bot has gone into pause state.