I found a solution by following the link below. It appears that in the portal I should disconnect the repo in Deployment Center and re-run the pipeline. Once it gives a check mark then connect it again.
https://learn.microsoft.com/en-us/answers/questions/382358/when-deploy-functionapp-to-slot-)-error-package-de