Can you please try the following in Avast as a test?

In Avast go to

Settings>Active Protection>Web Shield>click on "Customize"

and tick the box next to "Disable HTTPS scanning."

Does the error go away after this configuration change?

daemon