The version of Pharmacists1 GSE macro (I think it is the latest) shows the following:
/cast [target=pet,dead] Revive Pet; [nopet,nodead] Call Pet 1
That is different than what you posted. Maybe that is what is making your macro call the pet so much.
Thanks for sharing where you put the spirit mend. I’m trying that now.