How I Fixed the Mouse Bug in my M1 Mac mini & Logitech Mouse?

A bug which has been known for over 4 years has a simple solution.