I was having the same problem trying to program a 16f84a…
I was getting about 22 errors in program and one error in config…fortunately, I already knew that the code wasn’t the problem, cause I’ve used it before and successfuly burned the pic…
It turned out to be a hardware problem…I had a faulty transistor(bc337) that was not shutting Vpp off, so, no matter what code I would use, I would allways get the same errors!
here is a link to the thread that described this symptoms