Due to a problem in Quartus® Prime Pro Edition Software version 24.1 and earlier, the HPS IO hash generated for Phase 1 and Phase 2 bitstreams may change between builds if the HPS EMIF is not instantiated in an HPS-enabled design. This affects designs where boot mode is set to 'HPS First'.
You may use the QSF assignment to avoid this problem :
set_global_assignment -name INI_VARS "asm_constant_hpsio_hash = on"
This is scheduled to be fixed in a future release of Quartus® Prime Pro Edition Software.