MacBook Pro/Air Shuts Down Randomly/Unexpectedly.
If the heat builds up inside your Mac, it may shut itself down to prevent damaging its internal components. In most cases, improper placement of the machine may result in a random shutdown. We recommend you to keep the laptop on a flat surface to allow proper airflow.