Mouse sensitivity randomly changes
GW2 does not change the DPI settings on your mouse. Perhaps there is some keyboard or mouse shortcut you are hitting that is enabled if and only if gw2 is running, or something?
At least some gaming mice come with software that has “per game” profiles that can cause effects like that.