For me the solution was to save the hec-ras project (.prj), the DEM (.tif) that had to be processed, and the destination terrain file (.hdf) to a directory path with no special characters (no à, ò, ù, …)