Restore everything you backed up using the OpenGD77 CPS. This will prepare the radio but at this point it will still be running openGD77.
Restart the radio in bootloader mode and load the stock firmware using the manufacturer’s normal update procedure and program.
Use the official CPS to reload the original codeplug.