The Good Friday Agreement isn't a British law, it's an international treaty and a multi-party agreement. (Its implementation depends on several pieces of British law, most prominently the Human Rights Act 1998.)
It makes no specific arrangement for unilateral withdrawal. Legitimate reasons for withdrawal, in the context of "international law" (most explicitly the Vienna Conventions), would involve others violating their commitments under the agreement.