The issue is fixed now after updating all the nuget packages to the latest version and downgrading the Microsoft.Azure.WebJobs.Extensions.ServiceBus to 5.120. 0.
Added the below value in Azure portal in the Configuration enter image description here