Laptop RAM problem only when I plug in the charger
https://imgur.com/gallery/QBmnSvJ
On battery power no problem. I ran memtest86, windows memory diagnostics, occt ram test on battery, all fine and no issue. When I plug in the charger, ram gets heated up and freezes and upon restarting, 1 3 3 1 beeping error occurs. After some time(ram gets cooled down) boots up fine on battery and works normally and when I plug in charger.. same thing
Edit1: thare is tiny mark on one of the pins in the ram. Is that the problem, but when I tried with different ram stick. Same problem happens