ESP8266 keeps restarting

Have you considered that this :

#include "Arduino.h"

does not belong in an ESP sketch ?