Hello Eduardo,
If I understand the issue correctly, when you are changing the app.yaml file to change the scaling type from dynamic, it starts to give the error. Is my understanding correct? Could you please confirm if you are using this serverless VPC access?
Internally, I didn't see anything reported related to this.Please note, Google Group is intended to provide general information about the Google Cloud Platform. If you believe this issue is related to the product, I would recommend that you open a private issue and provide more details with the error logs so that we can investigate this further. I hope it will be helpful.