My laptop stops charging when under a heavy load

In 2020, I bought a gaming laptop from MSI: GE63 Raider RGB 8SE with an RTX 2060 mobile Intel Core i7 8750H 1 TB HDD, 256 GB SSD, and 2x8 GB DDR4 2666 MHz RAM, which I recently swapped to 2x16 GB DDR4 2666 MHz. It's been a really good machine, and I was able to run any game and even stream on Twitch with this laptop without problems. Recently, I've been using it for Premiere Pro After Effects Photoshop and running Fooocus for AI image generation. I didn't do anything such as overclocking or undervolting. The only upgrade I did to the machine was swapping the RAM, as I mentioned earlier, and changing the thermal paste. I am also using the original charger that came out of the box with the laptop. The problem I have is that when the machine is under heavy load, such as running fooocus, premiere, after effects, or all together, sometimes it stops charging even though it is powered. After that, the machine keeps running on battery power and is unusable for heavy programs until I unplug and plug in the charger again, which is understandable given the components and how much power they need. I contacted MSI support with this problem, and they told me to do a power cycle, but this didn't resolve the issue for me. I want to keep using the machine as long as possible, and it'll be nice if I can fix this problem somehow because it's frustrating to constantly unplug and plug the charger when this happens. Any help is appreciated. Thank you in advance!