Basically what you need to do is to be constantly on the move and stop to cast/channel longer times only when the targeting circle is up somewhere else.
The damage seems to lock in quickly after you get targeted and will hit you regardless how far you get after that.
Yes I know it's a pain for some specs/classes, but that's how you can avoid the lightning.