@ __CONFIG _CONFIG4L, _LVP_ON_4L & _STVREN_ON_4L & _XINST_ON_4L & _DEBUG_OFF_4L
'Single supply ICSP ENABLED
'Stack Overflow reset is ENABLED
'Enhanced CPU is ENABLED
Unless your programmer use this pin to program your PIC, high unlikely, you want to use LVP_OFF, unless it may not work as expected.

Second test, use the internal OSC or lower value for the external.