Is it possible that the phone is locked to a network other than giffgaff / O2, and it’s actually the Network unlocking code PUK that’s being requested? If it is, you should be able to get this from the network that the phone was originally sold on. They should be able to let you...