problem when playing very rare

Basically the game always goes well for me unless I plug the charger into the laptop a minute later a severe lag starts even if I start with 100% charge to play to play, if I unplug it while I suffer the lag a minute later I don’t have it anymore (I don’t have more programs open when i play)