Hello and welcome to Just Answer!
You have a faulty remote/key fob. You will have to go to the dealer to buy a new one and have it programmed by the service department.
GM World Class, ASE Master
13 years at 1 GM dealer, GM World Class Tech, ASE Master Certified, 8 time GM M.O.E. award winner,