This is a right royal pain in the backside. Whilst I’m not entirely sure what these popups are that you are getting.
I had my Firewall and Network Inspector set up so I didn’t get these notifications, then I updated to Avast Free 25.2.xxxx (I have program updates set to manual).
Something in that update screwed the pooch and literally every network connection generated a popup. I was furious and started checking/changing settings until they stopped.
Unfortunately being somewhat pi55ed off at the time I didn’t document what I did to kill it.
See my settings below, that however may be dependant on what your system setup is.

