The interesting line in your dmesg is this one, 2 minutes after system startup:
I can get this on my RPi4, too, when I switch the keyboard off and then back on.
So it very much looks like the Logitech unifying receiver lost the connection to your keyboard and then reconnects. This can be for a number of reasons - RF interference, keyboard switched off/on, keyboard too far away from receiver or receiver shielded by some metal etc.
Not much we can do about it, you have to check for these things in your setup.
BTW: A couple of years ago I had connection issues with the unifying receiver plugged directly into one of the back USB ports of my PC (with metal case). Using the ~5cm adapter that shipped with it was enough to cure these. Problem in this case was the metal case shielded the receiver. So if in doubt always use the adapter.
so long,
Hias