Umm.. well it's obviously something that is connected (On battery you get the problem and on AC you don't..)
What's odd is you reported it only happens in Logic and not with other DAWs that use AUs which is somewhat perplexing..... as that makes little sense.
Are you sure you were using/testing the AU version and not the Mac VST version with Reaper? (As Reaper can use both I believe..)
Anyhow...
In theory, if it is a hardware related issue then it should happen when K5 is used with any DAW
If it's a software issue however, then I can understand why it may not occur when K5 is used in standalone mode as then K5 using different graphic routines i believe but as you stated it only happens with Logic and not other DAWs like with Reaper (if you tested it using the same AU version that is) then that's the bit that is throwing me a little.... unless of course Reaper itself is using different Graphic routines.... to display Kontakt's interface.