The error was only generated for COM_STMT_EXECUTE commands when all PS commands should trigger it. In addition, large packets would get sent two errors upon the arrival of the trailing end.