Either your USB connection is dropping or you don't have enough storage space on your PC that you are using to flash GrapheneOS.
Make sure you have at least 32 GB free storage space on your PC, and use the USB-C to USB-C cable that came with your Pixel 7a device if possible.
Then return your phone to the bootloader interface and flash release again.