Hello,
This code is for a leak detection pump, which is part of the evaporative control system, and it has no relation to what is happening. I wouldn't focus on this code. When the battery has issues, it can induce all kinds of irrelevant codes, so just ignore it for now.
I would focus on the battery and charging system, then the overheating problem. Whatever yo do, do not let the engine overheat, you will damage the engine and increase the chances of having to spend thousands of $$ to get it fixed.
Let us know what you find out!
Good Luck!
Trouble Code: P1495 (2.4L L4 VIN B)
Leak Detection Pump Solenoid Circuit Malfunction