I had this happen once on my 2020 HD AT4. Luckily it was in my garage, and I was able to put a charger on it for a couple of hours. After, it started right up. The CEL stayed on for a couple of days but hasn't been back on since.
I have a feeling that it's something to do with the trailer electronics. I had just pulled my boat the day before and when I disconnected, the truck acted like it was still connected or trying to connect. Just a gut feeling......