M1 MacBook Pro Suddenly not charging
I am using an M1 MacBook Pro base model. I bought it this year in March. It has not even been two months. Today, when my laptop was on 100%, I removed the charger. And put it to sleep. After 20 mins or so, I opened the lid and saw that the battery was on 94%. I plugged it in and it is showing that my laptop is plugged in but not charging. I googled and found out that it happens sometimes because of the Optimised battery charging feature of the macOS. And the laptop can resume charging if I turn that feature off. I did that and my laptop is still not charging.
P.S. I mostly use my MacBook plugged in but drain out the battery two times a week. And when I do, I make sure to plug my laptop back in when the battery reaches 28 or 30%.
I am using macOS Big Sur 11.3.1 (the latest version). Does anyone know why is it happening?