It is showing in the error that you have already used the node in your Docker swarm earlier. So if you want to add the node in another swarm, then you need to leave from the earlier swarm. You can use the below command to do the same.
$ docker swarm leave --force
Node left the swarm.