Clicking/grinding is often the STVA and secondary TPS sensor. For example, if you unplug the secondary TPS sensor, (I think it's actually called the STP sensor) and turn the key on, the secondary throttle valve motor goes through a 'calibration' every time you turn the bike on, and without the sensor feeding back the ECU the position of the valves, the secondary throttle valve motor kind of clicks/grinds. Of course, unplugging the STP sensor entirely will throw a code unlike your situation, but it is possible that the STP sensor wears out sufficiently enough to not throw a code, but make the secondary throttle valves kinda 'dance' or jitter back and forth, causing a clicking or grinding as some describe it.
My issue with my K4 was similar, except in my case it was the STVA motor, not the sensor. A intermittent STVA motor connection will throw a code, but the code may go away when you're troubleshooting. In my case, that happened. I turned the key off when the bike threw the code and couldn't get the code back in my garage. But I did the well-documented STVA fix (at least for my bike) and my problem has gone away, even though I was unable to get a factual code for what was wrong since I wasn't fast enough to catch it. So an intermittent connection on the STVA motor could be your issue too, but I think the K8 1000 has a slightly different design than my K4, but the problem could be similar. It sounds like what I had.
I would recommend you lift the tank, and open the top half of the airbox. You will clearly be able to see the secondary throttle valves there and verify if they are moving/jittering causing this noise or not. And if they aren't causing it, you could then easily get your ear to the fuel pump or anything else. I think injectors briefly open when you turn the key on too IIRC but I am not positive on that, but I think it could make a tiny click sound. Either way, getting the tank lifted will help you investigate for sure.
Hope this helps.
-Mike