This always help when we know the PIC model, and see the configuration fuses... here make sure you're using HS_OSC.

Not sure how ICD work with LAB-X1... maybe you need to reset the PIC first?