It can probably be salvaged with the PICkit 3 v3.10 standalone software as that allows you to set a Vpp first mode that prevents code executing before the chip can be put iinto programming mode. N.B. it is IMPOSSIBLE to use Vpp first mode with external power.
It may also need you to reduce the programming Vdd as much as possible to get the chip successfully detected and erased.
Once you've recovered it, to prevent further problems, if possible reallocate the pins to avoid having outputs on PGC,PGD, and if you cant do that, add a minimum of a 1/2 second delay after startup before making them outputs (as H.O. just recommended).