Common problem if you drive in snow or a lot of rain.
The module and its wiring harness are exposed to the elements. You can try cleaning and repacking the connector with dielectric grease.
Myself, I've had both modules replaced after three winters. It was done at no cost under my GMPP.
Unfortunately replacement isn't just plug and play as the module needs to be programmed to the car requiring access to the software from GM.