Question Mouse freezes only when i play high demanding games

Jul 27, 2021
my mouse freezes only when playing demanding games like warzone, god of war etc but it doesn't freeze when playing csgo, valorant and more games that are similar.
my specs are
gtx 1080ti
i7 9700k
24gb of ram
128gb ssd
1tb seagate drive

this has been happening for about a year now and i always gotta use a controller for high demanding games since it doesn't happen on it. i've also checked the port and changed to a different mouse but nothing was fixed
i also know its not the usb port since i tried plugging my controller in the same port i have my mouse in and never froze on me when playing said demanding games.