Hi Kawen,
How have you installed your nginx-ingress-controller?
Was it installed via Microsoft's Addon - https://learn.microsoft.com/en-us/azure/aks/app-routing?tabs=default%2Cdeploy-app-default? or was it via HEML charts?
If it was via Addon, unfortunately you won't be able to update it yourself, this is a managed nginx-ingress-controller and therefore the upgrade will be performed by Microsoft's end when possible and if you try to change it, indeed this change will be overwritten again.
If it was via HELM charts, you can consider on updating the charts and then update the deployment:
$helm repo update <name of the repo>
$helm upgrade --reuse-values ingress-nginx ingress-nginx/ingress-nginx
For more information, please check documentations:https://helm.sh/docs/helm/helm_repo_update/
https://kubernetes.github.io/ingress-nginx/deploy/upgrade/#with-helm
https://learn.microsoft.com/en-us/azure/aks/app-routing?tabs=default%2Cdeploy-app-default