Photon in SOS after flash --usb

Hi,
I’m really fed up with my Photon.
Everytime I flash my photon via Particle cli in USB mode(in Visual Studio Code) my photon goes in SOS.
When I flash again the photon with the system files + thinker + bootloader than everything is fine again.
When I flash via the web IDE everything is also fine.
Flashing in Visual Studio Code OTA gives my access denied.

Please help.
Thanks

I found the issue causing my photon going into SOS.
When I flash in the web IDE the code below it works fine, if I enable the second line in the Setup() then I have a SOS.

// This #include statement was automatically added by the Particle IDE.
#include <IRremote.h>

int RECV_PIN = A0; // The digital pin that the signal pin of the sensor is connected to
IRrecv receiver(RECV_PIN); // Create a new receiver object that would decode signals to key codes
decode_results results; // A varuable that would be used by receiver to put the key code into

void setup() {
Serial.begin(9600);
//receiver.enableIRIn(); // Enable receiver so that it would start processing infrared signals
}

void loop() {
Serial.println(“Ping”);
delay(1000);
}