Comment by askvictor
If it was malware I'd expect it to happen more often; it's usually when I do have a lot of thing going on (browser tabs, VSCode sessions), so I spark up the task manager to work out the problem process, but CPU usage drops before I can investigate.
Plus I'd be surprised if I got the same thing on both linux and windows