I feel like there is something with an addon, but here is something to try. In 3D Viewport, click Pose menu->animation->Clear Keyframes. Make sure to do Clear not delete. Then try doing the same thing. If you still get the error then maybe post a link to blend file.