change SSIS package protection level before deployment
Since you're in project deployment mode, which means you are deploying to the SSISDB, there's no need for what you're doing ;)

When you deploy, the isdeploymentwizard.exe is handling all that for your



As part of the deployment, the "Changing protection level" step switches the packages to ServerStorage level