In addition to what others suggested. Are you using a transistor to buffer the pic
output from the relay coil? If not you may be exceeding the current capacity of
the output pin. This could cause...