The busted thermostat issue will not cause a PPR event. A battery that cannot produce electrons at a rate to keep up with what you're doing is what triggers PPRs. Most of the methods for managing PPRs (which are symptomatic of an aging battery or a damaged cell) involve the engine being used, and the busted thermostat will definitely make using the engine less efficient and less productive. So fixing that thermostat might be a good idea.
And in the meantime, go read as many 2023 threads as you can about a code P0AFA, how to protected weak cells, and to NOT shut off the car while the engine is turning if you can help it.
And in the meantime, go read as many 2023 threads as you can about a code P0AFA, how to protected weak cells, and to NOT shut off the car while the engine is turning if you can help it.