MacBook Pro restarting daily because of charger getting fried.
Hello! About 2 weeks ago, my MBP charger block got fried when I plugged it in. It sparked, then it smelt burnt, and then I realized that my Mac wasn't getting charged. After a few minutes, my computer just randomly restarted, it was my first time seeing "your computer was restarted because of a problem". I quickly brushed it off thinking it wasn't a huge problem. Then it happened later that night, then it would happen a few times a day. It usually happens after I have put my mac down somewhere, the mac would be unresponsive and then it would restart. Though it doesn't happen every time I put my mac down, it usually does happen when I do. I'm not making like drastic movements/ jerking movements, they are usually just like putting it down from my lap or like moving it from a position.
Hopefully, this is enough information for you guys to work with. Thank you in advance for any help/ suggestions.