The same thing happened here.
I've made no changes to anything. When notarizing, I use copy+paste of existing text to input into the Terminal. I first signed a package and it worked, but when I went to notarize it, I got the error.
After closing the Terminal and re-opening it, then running the command again, it worked.
Topic:
Code Signing
SubTopic:
Notarization