I want to join the discussion here and add my $.02:
My 2008 (42k mi) ran pretty much flawlessly until around 35k, then developed the same symptoms as OP's bike.
Symptoms: Engine intermittently, repeatedly, irregularly, and briefly (1-several seconds) "cuts out", or stalls (as in, "dead as a doornail), usually, but not always, after cruising for an extended period at the same rpm. Never occurs before bike is ridden 60-70 miles (until yesterday- after 20 mi.), and more often than not, not even then. Always occurs after continuous 200+ mi. rides. Occurs in 4th and 5th gears (but could likely occur in other gears, if I cruised long enough in one), usually around 4-5k rpm. If the engine fails to "revive" on its own, I can coax it to resume power by downshifting and giving some throttle.
Seems to happen regardless of temperature, fuel octane rating, road or other external conditions. What seems consistent: rpm= 4-5k, engine has been running continously (and smoothly) for an extended time at the same rpm (never during acceleration, or changing rpm's).
I have previously done fuel cap maintenance; no effect. Have added RR's harness, Barbarian jumper mod, inspected/serviced ground spiders (pristine), various farkles. Have not checked harness grounds(except when I installed RR's harness); replaced battery less than 500 mi ago, which has not stopped the prob.
I am very motivated to cure this problem (imagine your ride stalling at 80mph in 4 lanes of steady traffic, and you'll understand where I'm coming from); and will be willing to try whatever (within reason, cost, ability, and time-wise!) the gurus suggest. Oh, BTW, I am, for the most part, an electrical jackleg. But I do have a good analog meter (and a cheapo HF digital), and can generally tell the AC's from the DC's. (apologies to Firesign Theater!). With winter around the corner, it's time complete some other maintenance as well as get this aggravating (and unnerving) glitch resolved.
Please advise with request for other info, or suggest a course of action. Right now, I lean toward a TPS malfunction or grounding issues, but these are only a hunch.