Iranian President Masoud Pezeshkian has vowed to remain party to a key nuclear treaty and talks of Gulf unity against Israel.