User may experiencing quartus_hps write and verification fail when using the 17.0 release with a Cyclone V SoC QSPI flash device. There were some internal programmer problems that causing this error.
To overcome this problem, add another command parameter "-m3" in the quartus_hps command to get it work temporarly.
quartus_hps -c<cable> -o<operation> -m3 <file>
Note: this command can be used only for specific setup and product.