So in Response to everyone’s input. I had a similar problem which was due to a shitty mechanic(myself) replaced my battery and the truck(2014 GMC Sierra) started right up. After a day of driving dash lights started to flicker, stabilitrack earning came on, etc. the next morning truck sputtered lights flickered and it barely started. Trouble shot it the next day. Turns out I had a bad connection because I didn’t tighten one of the nuts enough on the electric manifold(whatever the god dam name of that is). After driving for a day it must’ve shook loose and cause intermittent current aka a shitty connection.
Check your connection people. Then have a beer