The battery stops charging when I do heavily loaded processes. When I unplug the charging cable and plug it back in, the battery continues to charge. But after a while, when I play games or do heavy processes again, it stops charging. 
I disable the battery and run the laptop without battery and the result is the same again, the laptop shuts itself off. 
I don't know if it's because it's getting too hot. It was getting hot before but it didn't stop charging.
I can watch movies or surf the internet for a long time and it doesn't cut the battery and there are no problems.
How can you give a solution?