The international law comission in its commentary on VCLT article 56 stated
> Treaties between one or more States and one or more international organizations include a class of treaties which although having no denunciation clause, seem to be denounceable: the headquarters agreements concluded between a State and an organization. For an international organization, the choice of its headquarters represents a right whose exercise is not normally immobilized; moreover, For an international organization, the choice of its headquarters represents a right whose exercise is not normally immobilized; moreover, the smooth operation headquarters agreement presupposes relations of a special kind between the organization and the host State, which cannot be maintained by the will of one party only.
https://www.icj-cij.org/sites/default/files/case-related/65/065-19801220-ADV-01-00-EN.pdf
The court also discusses the ILC report but it doesn't seem to have settled on any particular view.
The ILC's commentary says that the organisation's choice of headquarters is a right whose exercise is not normally immobilised. It uses this as a reason why headquarters agreements may be denounceable.But an organisation's right to choose or change its headquarters concerns its institutional autonomy.
The host State's right to terminate the agreement concerns the continued validity of its international legal obligations. Those are not necessarily the same legal question, there doesn't seem to be any reason to not presume that an organisation can be free to relocate while the host State remains bound by the agreement's obligations during the period in which it remains in force. The organisation's freedom to leave does not logically establish that the host State has an equivalent right to force the agreement to end. A headquarters agreement is not simply an ordinary commercial arrangement concerning the occupation of premises. It establishes the legal conditions under which an international organisation can operate within a State. So it seems there's no reason to presume that by their very nature these agreements would be withdrawable especially given headquarters agreements generally don't seem to contain a denunciation clause.
The ILC itself recognised that the smooth operation of a headquarters agreement presupposes a special relationship between the organisation and the host State, which cannot be maintained by the will of one party alone , so could mutual obligations with regards to this be inferred to ensure a smooth transition during denunciation ?
Edit; follow up question , assuming headquarters agreements aren't denunciable by their nature , would the member state which hosts the organization withdrawing from it have any legal effects also upon the headquarters agreement ?