welcome to Just Answer.
Ok it could be a couple of things.
Instrument Cluster, bad Wire or ground problem, The BCM Body Control Module, Battery, or battery wire.
You could have loose wire or the connections on the battery are not good, the cluster, or the BCM. Here is how to check the Cluster and BCM, also check the relays in the junction box next to the battery.