1. Create a template that has no environment variables defined.
2. Create two pipelines off of that template.
3. Add a parameter to ONE of the pipelines using that template.
4. Update the template and create an environment variable, and assign the parameter from the pipelines to that environment variable on the template. When you try to save the template, it will start throwing the error.
At this point, try going to the pipeline that doesn't have the parameter defined and try creating it. Go back to the template and try to create the environment variable again, it should still throw the error and every time you press save, it will append the variable names and the error will get longer and longer.