No idea for a title that better describes the issue.
If I'm in PS and I press the shortcut for a 'brush' type tool (dodge/ burn/ brush/ clone etc), when the brush of that tool is large enough to touch the edge of the screen (in the used zoom setting), PS instantly switches back to the previous tool. Not every time, but often enough to be very annoying.
"Solution" in that case is to either zoom out, or press caps-lock (so you don't preview brush size).
AFAIK, this issue has existed since at least Photoshop CS6.
PS CC 24.1.0, OSX 12.6.1 on a MacStudio (before that it also happeneed since PS CS6 on a MacPro and previous versions OSX).