For drag-drop, drag node is first unlinked from existing position then linked above or below the drop layer. When drag and drop layers are same, layer is unlinked from listbase and further linking fails because layer is not found in the listbase. Pull Request: https://projects.blender.org/blender/blender/pulls/110009