Okay, it's pretty likely the macro is simply trying to cast the wrong heal spell(s). You need to tell it, explicitly, what to cast.
In the top portion of the macro:
/declare healSpell string <single target heal spell here>
Example: /declare healSpell string Faithful Light Rk. I
/declare groupSpell string <group heal spell here>
Example: /declare groupSpell string Word of Strategy
In the lower portion of the macro:
Fix
/casting "Pious Remedy" -targetid|${Spawn[pc ${curHealTarget}].ID} -maxtries|5
to be
/casting "${healSpell}" -targetid|${Spawn[pc ${curHealTarget}].ID} -maxtries|5