Yes, I tried that route but it still threw up the error.

Seems a total system shutdown for a while will allow programming after restart. This lasts for a while before the error appears again.