Unable to upgrade default node pool of AKS cluster using Terraform

Hi,
I am trying to upgrade the control plane (which includes upgrading Kubernetes version and default node pool orchestration version upgrade) of an existing AKS cluster which is already being managed by Terraform. In this process, only the Kubernetes vresion of the AKS cluster is getting upgraded but as soon as it picks up the default node pool for upgrade, I am getting the following error:
performing CreateOrUpdate: agentpools.AgentPoolsClient#CreateOrUpdate: Failure sending request: StatusCode=0 – Original Error: Code=“CustomKubeletConfigOrCustomLinuxOSConfigCanNotBeChanged” Message="CustomKubeletConfig or CustomLinuxOSConfig can not be changed for this operation.
I am currently using azurerm version 3.54.0
Can anybody please suggest any solution to this error?