First of all, I applaud your attempt to fix this and avoid sending another piece of E-waste to the trash.
Do you see that black epoxy blob on the board in there? There is a naked chip below. It is the absolutely cheapest way to purchase and assemble a semiconductor, saving the manufacturer a few micro-dollars versus a SOIC or TSOP.
But the bond between the epoxy and board is NOT hermetically sealed. Humidity can, and definitely will ingress and damage the semiconductor. And it cannot be replaced.
I sincerely hope that there is something different and you can actually fix this device. But garden lights are usually a prime example of fecal-matter electronics devices.