I still use the PICKIT1 for little things. If I use the PICKIT and import the hex the same happens, but the device works.

If I use MPLAB and the PICKIT everything works like it should.

Maybe the same with 2.