The safest mode for most users is "Download Only." Avoid "Format All + Download" unless you are repairing a hard-bricked device, as this can erase critical IMEI and NVRAM data.
If your stock firmware contains an XML file instead of a .txt scatter file, follow these steps to use it: xml file for sp flash tool
Open the SP Flash Tool v6 executable as an administrator on your PC. The safest mode for most users is "Download Only