You might have already checked this but mine was out 3 weeks ago...through the code and check engine light. Checked under the hood checked everything. Then grabbed the terminals to see if they were hot or loose. my passenger side battery terminals needed replacing. Positive was so loose that it was melting and starting to make a point in the bottom of the terminal and starting burning a hole in the battery! Sometimes it’s usually a connection issue or weak battery’s.
Good luck with it.
Good luck with it.