We can't assume it is the fobs or transponder chips. There are other possibilities like the Comms unit inside the steering wheel that may not be communicating the info back and forth from the transponder coil to the BSI. If it cannot do this, starting authorisation won't be granted and it won't be able to programme the keys. It could also be why the issue is intermittent.
The other possibility is the transponder coil itself - it could be that the unit is faulty and another reason why the original owner had the transponder chip taped near to the coil as a bodge job.
The comms unit may also be at fault.
So as you see, there could be other possibilities. The fobs, once programmed don't become 'un-programmed', but can become unsynchronised, after a period of using from long distances where the number of rolling codes exceeds the 255 offset limit, necessitating the re-synchronisation process (which I think I posted earlier), which is of course not the same as re-programming the key.
So please report back on the codes as it may help with further fault finding - after you've had a bacon butty and a coffee of course!