Here's the reply I've received from Avast:
Hi, we are sorry for the issues. We believe, it is caused by RealSite feature and happens with WSL 1 only... The fix will be released in AV 22.10. It is also possible to switch to WSL 2 that should work without any issues.