Good day. Don't worry your phone will be just fine. It sounds like you had a connection problem somewhere, if possible use the original usb-c cable, maybe try another port as well. Remember you can perform the installation through a second Android phone too.
You can restart the process by heading into fastboot mode again (hold volume down while the device boots), obviously skip the unlock bootloader step since that's done already.