Sorry this happened to you, but it is pretty normal. The stock batteries suck if you still have one. I just replaced my 2017 battery last year, the build date of my truck was from October 2016 so my battery lasted roughly 3years.
I had similar symptoms.. one day out of the blue no start or inadequate starting. No power, battery looked good but when I replaced it with a new battery everything was fine. Haven’t had a problem since.
My recommendation would be just buy a good battery with decent warranty from your preferred retailer.