Change the Processor Power Management Settings :
Preventing your processor from reaching its peak performance can help fix laptop lag or slowdown issues while charging. Reduce the percentage next to Plugged in under the maximum processor state to 95% or lower.