Macbook pro 2017 randomly shutting down
Recently my MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) has been randomly shutting down throughout the day. When I press the power button it says it is out of battery. And when I plug in the charger to turn it on, there is still tons of battery left. I am using the BigSur MacOS.
MacBook Pro 13″, macOS 11.6