Perhaps someone will help and my decision.
Instead of turning off the common trigger -> Uncheck "Enable automatic port scan detection"...
you can try to go Avast UI -> Protection -> Firewall -> Application settings.
Here we find the 'Canon Inc' group and enable 'For all other connections: Ask'
Then, if necessary, reinstall the printer drivers and answer the questions of the Avast firewall - "Allow".