Hello @Henry Chen,
the message you get is by design.
This is to protect you from unsuspected costs because time is part of the way (consumption plan) functions are billed.
Azure Functions in the Consumption plan have a default timeout of 5 minutes and an upper limit of 10 minutes.
If you need a longer timeout, you need to switch over to a different plan which provides longer timeouts and dedicated resources.
If you want to extend towards that 10 minute limit, follow this guide.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.