I seemed to have a similar problem and it also probably began when I upgraded my iCUE to 3.22.74. I started noticing that the ESC and F1 buttons on my Corsair K95 RGB PLATINUM keyboard were triggering the same autoclicking macros that I have programmed into my Corsair M65 PRO RGB mouse.
I finally started investigating the issue after enduring it for a while and found this thread and I was about try what Sisukas suggested, but right before starting to uninstall my iCUE I saw that there is an update available (Software version 3.27.68). That made me feel very hopeful that this update will solve the problem, so I installed the update and voilà! Problem solved!
So if some of you have this issue, try updating iCUE to the newest version. It worked for me at least.