Apple Advises Customers of Two-Port 13-inch MacBook Pro on Random Shutdowns »

Apple Support:

If your MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports) randomly turns off when it still has a charge, these steps might help:

  1. If your MacBook Pro’s battery is less than 90 percent charged, continue to step 2. If your battery is more than 90 percent charged, use your computer until the percentage drops below 90 percent, then continue to step 2.
  2. Connect your Mac to its power adapter.
  3. Quit all open applications.
  4. Close your computer’s lid, which puts your Mac in to sleep mode.
  5. Let your Mac charge for at least 8 hours.
  6. After 8 hours, update to the latest version of macOS.

This is a weird problem with an unusual fix. I’m not sure what these steps accomplish that something like an NVRAM reset would fix, outside of some sort of issue with the battery controller, maybe. I wonder if a firmware update will be coming at some point…