Strange problem with X Box One S

1 out of every 10 plus tries X Box with turn on, show up on TV for maybe 30 seconds with error, i know its a hard drive error since its brand new drive. Shuts down, press power button and only beeps. Bit stranger is the fan pulsates on and off without touching or trying to turn x Box on. I’ve searched the internet but found nothing on this strange issue. Anyone heard of this type problem?