Hello!
I've had this bug happen for a while on bigger projects with many layers (50+) that my computer has trouble running smoothly.
Sometimes, if I try to delete a layer by selecting it in the layer panel and either pressing delete or clicking the trashcan icon, another layer is deleted instead and the one I want gone stays intact. However, if I right-click the layer and click delete layer, it is deleted properly. I have made sure that the other layer is not also selected. I have also noticed that when this happens, the layer that is accidentally deleted is always the same, but it can happen while trying to delete different layers.
I don't know if this is related but last time this happened, the app crashed later and when I brought back the recovery file, it crashed over and over again specifically when I tried to bring back this deleted layer.
I cannot currently reproduce this bug, but I will screen-record it and add it to this post if it happens again.