@Rahul K​ - Databricks recommends you avoid storing init scripts under /databricks/init (which is now a legacy) to avoid unexpected behaviour. Try using the new Global Init Scripts using either the UI or API or Terraform and see if the issue persists.

Reference: https://learn.microsoft.com/en-us/azure/databricks/clusters/init-scripts