I had a similar situation with my (then new) 2018 Mazda 3 GT. As I was driving cross-country, the entire dash panel lit up like a Christmas light. Every light was on. I limped to the next exit, parked and called Mazda as the car was still under warranty. The car was towed to the nearest Mazda dealer who initially said this likely happened because I connected a non-standard OBD tool to the diagnostic port. I informed the dealer, in somewhat forceful terms, I had NOT connected ANYTHING to the OBD port. The dealer couldn’t reproduce the problem or find anything wrong. The car ran normally, so I continued my journey. Once home, my Mazda dealer replaced the battery under warranty. I explained the incident happened after I awoke from a several hour nap. His explanation was that it was probably a combination of a bad battery and/or loose battery connection, paired with the moisture inside the car (from my sleeping) confusing the sensors. Happily the problem hasn’t repeated, but it sure made me look differently at a car I had previously loved.