As an owner of many Logitech mice, I have honestly never had a problem with it. Well, I take that back. My G7 had to be RMA'd due to battery issues but with your G5, you will never encounter this problem.
I would try to return it as you may of simply got a flaky mouse. If your still not...