reason is simple... you run out of memory...

PIC16F876 : 8K
PIC16F88: 4K
YourCode :4287 words

so you can for sure shrink it using internal or external EEPROM instead of arrays and few other things. It has to fit in a 4k memory space