Hi
I got of some sort similar problem with yours.
My MSI laptop would die after a few minutes on AC power only without the battery.
There is no problem with power if it is on battery only.
I guess it is on my charger port or motherboard is the problem.
My charger is now dead by the way. I guess...