False layer gets duplicated through context menu
If for example layer 1 is selected in the layers panel and layer 2 is right-clicked, the context menu for layer 2 appears. If you choose to duplicate the layer 2, the selected layer 1 gets duplicated. Deleting works as expected.
We have been able to reproduce the issue and it is currently under investigation.
Workaround: Select the Layer that needs to be duplicated to avoid the issue.