Every Logitech mouse I’ve owned in the past 20 years has had switches fail and start double clicking. Usually it’s the middle mouse button since it uses a cheap tactile switch instead of the larger more robust micro switches.
I buy a bunch of switches off Digikey and solder in a replacement when it happens (like once a year for each mouse), but it’s a hassle.
By default it should be configured to allow all outgoing, and block all incoming. That’s perfectly fine for a desktop/laptop and you don’t need to mess with it.
You can’t really do that much outgoing filtering with a firewall that will be useful, because basically everything operates on port 80/443, and often connects to the same CDNs or datacenter IPs for multiple services.
Instead DNS blocking is a much more effective way to handle it, plus uBlock Origin in your browser.