I can't imagine the zip file size being a contributing factor. I would try deploying the code directly to the app service via zip deploy, which you can do inside Visual Studio Code, or local git. This will help narrow down if it's your DevOps pipeline or your code repo.
The error message itself is pointing to memory allocation errors. I would caution to say you may hit the same issue using a different deployment method. Something else you could try is adjusting the memory limit via WEBSITE_MEMORY_LIMIT_MB
application setting, changing the Node.js runtime, or upgrading to the latest Node.js version. If you're seeing positive results with that, then you can scale up your app service plan. You can also try to scale it back it down or create a separate app service plan just to see if you're getting the same deployment error.
If none of that is helpful, then we would need to work more closely with you regarding the matter. Please feel free to comment down below to let us know the outcome.