PIC Kit 3 - PIC32 memory mismatch error
The PIC32s have a vcore/vcap pin that needs to have a sufficiently large, low esr capacitor connected otherwise you will get strange errors like this and it would not run stable. In the datasheet, there's a section detailing minimum connections including the minimum capacitor value.