Hello Jawher Khalifa,
Thanks for your question.
I will recommend you set up application insights telemetry
https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=python
It will show you errors in the app insights exception panel
Please check Functions metrics for the HTTP Server Errors at the time of the issue.
You can use the diagnostic steps here:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-diagnostics#start-azure-functions-diagnostics
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola