Red blinks when long pressing setup button

Hello,
My P1 is blinking green and I am trying to get my P1 into safe mode(breathing magenta).
I pressed setup, hit reset with setup held and am waiting for the P1 is blink magenta so that I can release the setup. But it never did.

So I tried to set it into listening mode. I held setup for more than 10 secs and P1 started blinking red. The pattern was similar to the blinking red pattern when P1 goes through a code crash.

How do I recover/re-flash my P1?

Thanks
Dheeraj

Which board are you using?

I am using a Photon P1. The chip itself soldered on to a PCB with setup and reset buttons exposed like the photon board. The board worked fine for several days and I encountered this issue now.