The P0AFA code is usually triggered by a cell group in the main battery getting below 2.05V. There is a special programming process called in English "Clear Secured High-Voltage DTCs" after fixing any other DTC conditions that may exist. Once that programming step is run, the main battery will be re-enabled, and you have a functional car and the exciting challenge of never letting that weak cell group get below 2.05V ever again. (Mountain Mode instead of letting the battery run down to 0 miles, not shutting the car off while the engine is spinning and charging the battery, making sure to keep the battery charged whenever the car is just sitting will all help.)