Instance 0 will always be bugged. So make sure you scale it to 0, 0, 0.
Other than this the alternative is to use Per Instance Custom Data Value, and send in the scale to the material that way.
Edit: You can fix the first bugged instance by changing the Transform to "Tangent Space-World Space and add an "Abs" node. Credit to RecourseDesign.