In trying to troubleshoot this, I unplugged the mouse from the right side of my keyboard and used the left keyboard USB port. Same problem. I then switched the mouse out with a lightly used but identical model of mouse, and the same problem still happens after working for almost two days.

I'm open to any further suggestions, since this doesn't seem to be a hardware problem as far as I can tell.