Check power supply wiring, especially the connector, install 1000 uF 16V electrolytic capacitor and 10 nF on your pic power pin