Been having stutters and cut-outs with APMs for months. What seems to have worked (about 7 hours) was removing all BT devices from my M1 MBA and pairing APMs with MBA again. Removing just APMs did not work, tried it earlier.
In my case, I have disabled continuity and universal control and I don’t have problems anymore.
These features have probably a very intensive usage of BT and can cause lags
Since I have disabled this (I don’t really use that), it works really better (iMac 5k 2015)
Thank you! This solved the lag that was happening when using the Apple Magic Keyboard and trackpad on OS on my intel i7 Macbook Air running Ventura OS 13.1.