Thanks for reaching out to Q&A forum.
Please check if your scenario is related to this issue. If it is not related, I would suggest you review the dependency injection implementation in your code. Please look into the below documentation for reference.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection
Feel free to reach out to me if you have any queries or concerns.