Input lag when running Unity 2022 (mac, sonoma)

Good day!

A few days ago I suddenly got a lag on any input in other applications when Unity 2022 is running. The lag appeared in the middle of the day, no new applications were installed that day.
It looks like this: if I switch to any other application (Rider, browsers, notepad) while Unity 2022 is running, then in about a minute when typing from the keyboard it starts to slow down very much. Characters in input fields appear 2-3 seconds after pressing. If you switch to the Unity window and back, everything becomes normal for a minute.

If you unload Unity 2022 from memory, the problem disappears completely.

If Unity 2020 is running, there is no problem.

The problem persists with Unity 2022.3.12, 2022.3.13, 2022.3.14 running.

OS: Sonoma 14.0. iMac 2020 intel
Keyboard tried was bluetooth and wired too

It has become difficult to work, maybe someone has encountered this?

Solved
Punto switcher in background was the problem