Recently, some MacBook Pro users have complained that the computer will suddenly shut down, and the problem is random. Apple has stated that it has found a problem, acknowledged that some MacBook Pros have failed, and provide a less common solution.
Shut down when power is still present
According to the information on Apple's official support page, this problem occurs in the MacBook Pro 13-inch (2019 version) version with 2 Thunderbolt 3 interfaces. The official said that these batches of MacBook Pro will randomly shut down when there is still a battery. Some users have pointed out that a sudden shutdown occurs when there is still 20-30% of the battery and no work that consumes CPU resources is performed.
Apple recommends that users affected by the problem can first reduce the battery of the MacBook Pro to below 90%, then connect the power cord, close all apps, and close the computer (in Sleep Mode), and charge it for at least 8 hours. Then new macOS latest version. This is a relatively rare method, and if you still haven't resolved the problem, go to Apple Support for help.