I fixed it by making a Cast To “MaterialINstanceConstant” node and put that into the “Set Material Instance Texture Parameter Value” node