Add leaf failed after delete leaf

I don’t have an answer for your question about how to deal with that error. I’m guessing you were trying to move your data directory to a new folder, is that right? This post has instructions about how to do that.

Worst case, if you have a backup, you can rebuild your cluster, with your datadir in the desired place, and restore from the backup,