Ensure the phone battery is charged to at least 80%. A power failure during flashing will hard-brick the device.
Ensure you are using a high-quality USB data cable and that legacy Nokia drivers are correctly installed. Try using a USB 2.0 port instead of USB 3.0. nokia 5320 rom repack