Something to try ...

Try erasing the PIC before attempting to reprogram it