This is just a nuisance message. It is a message from pacman. Unfortunately, pacman throws that error if the hook doesn’t read the entire pipe. My script stops reading the pipe once it has enough information.
I need to fix it but it doesn’t hurt anything. It doesn’t mean the process wasn’t successful.
I only recently found out what the source of the problem was when someone opened an issue about it.