There was a bug in 1.2.6 which could cause upgrade failure in certain network situation.
Please try to turn off your router and then setup a Personal Hotspot on your phone with same SSID and password.
After your lamp connected to this hotspot, try upgrade firmware again.