Unplug everything: USB devices, dock, and any microSD card.
Hold the power button for 30 seconds to force a full power-off, then release.
Leave it on the official Surface charger for 15 minutes or more, then power on with nothing else connected.
Use the interrupted-boot method: power on, and as soon as the Surface logo and spinner appear, hold the power button to force it off. Do this 2-3 times. On the next boot it should land in "Preparing Automatic Repair" and then the blue Windows Recovery screen.
Try Startup Repair first.
If that fails, try Reset this PC (cloud download is better than local reinstall if the local image is the problem).
Troubleshoot > Advanced options > Command Prompt is also an option, but with a fresh OOBE-stage failure it's rarely useful.
From another PC, go to the Surface recovery image page at support.microsoft.com/surface/recoveryimage, sign in, and enter the device serial number. Download the Laptop 6 image and write it to a USB drive of at least 16 GB, using their instructions. Then in WinRE choose Use a device > the USB, and let it do a full restore.