Mouse Sensitivity keeps changing on it's own despite the settings staying the same.

I use raw input on and mouse accell off with 1200dpi on 6 sensitivity, I'm running a G502 Hero and just recently uninstalled ghub after ripping my hair out trying to solve this issue. From what I can find it's only an issue with CSGO and TF2 and it's been an issue years ago but was resolved. I don't know why this is happening, but It's become far too frustrating to play the game anymore in this state when every 10 minutes my sensitivity spikes with no ability to change it.

The in-game settings don't change, my mouse dpi in G-Hub doesn't change. this is an issue with source being fucky with logitech mouses. >:L

UPDATE 2/14/24: IT'S ALT-TAB!!
Every time the game is alt-tabbed, returning to the game causes the mouse sensitivity to become extremely low, making it hard to turn and look around. VOLVO PLEASE FIX