UV Mask appears in Viewport Shading, but not Render Output

I have a material that uses two material groups and a mix shader so that I can add some variance to a repeating concrete wall.

For some reason, the material appears correct in Viewport Shading, but in the final render it appears as just one of the two material groups.

I’m not sure why it’s behaving this way. Has anyone had this issue before?

In the image below, the underlying texture should be that little patch by the man. In the final render (Can’t show since I’m new and can only upload one image per post), the underlying texture consumes the whole wall.