I have PSD with frame animation and the at least one layers group, I can't use the "Paste frames" command with "Paste over selection" option. When I try to run such a command, I get the error "Could not complete the command because of a program error".
After removing the layer group (with "Ungroup layers" command, thus the group's content is not deleted), the "Paste over selection" starts to work fine.
Steps to reproduce:
create new PSD
create frame animation
create the new frame (there should be 2 frames now)
create new group and create new layer inside this group
in the Timeline panel under the "hamburger" button select "Copy frame"
Again in the Timeline panel under the "hamburger" button select "Paste frame..."
Select "Paste Over Selection" option and press Ok.