Trying to drag & drop sometimes is reset multiple times during drag with mouse Logitech M510 on macOS

For my case, unfortunately the solution was replacing the 4-years-old Logitech M510 mouse! Looking at some Amazon reviews, this model frequently start to have issues after a few years.