If anyone is still experiencing this, GM has figured it out and I just got my truck fixed. It's the Driver's side Switch and/or Latch. Basically, one of them is interpreting incoming signals wrong and thinking the key was turned 5 times causing the truck to enter the key fob learning mode.
PIT5860B: https://dot.report/bulletins/11011368