Thanks for posting your question in the Microsoft Q&A forum.
Implement warm-up strategies to keep the function app warm and prevent it from being unloaded during idle periods. You can use Azure Functions Premium Plan or implement a solution like Azure Application Gateway's warm-up feature.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful