This is exactly what the problem is. It’s like typing pacman -S -S ... or any other combination of upper case letters. You can only type one.
If this error happens even when you type a single upper case letter (ie. single operation), then I suspect you have some weird alias set in your .bashrc/.zshrc or perhaps some custom script that calls pacman and already calls it with an operation.