I heard an actor playing the role of a mathematician on TV mispronounce "Hilbert space" by putting the primary stress on "space" and the secondary stress on the first syllable of "Hilbert". That's the only time I've heard it pronounced other than with the primary stress on first syllable of "Hilbert" and the secondary stress on "space". (For those who may not know, "Hilbert space" is a concept one usually first learns as an undergraduate, unless one is not a mathematician or physicist.)
Is there a name for this phenomenon by which locating the stress in a phrase with more than one word is necessary for correct pronunciation? And a scholarly account of the matter?
(Another example: "law merchant". If this meant a merchant who sells laws (if such a thing could be imagined) the primary stress would be on "law". But "merchant" is being used here as an adjective qualifying "law" and it's pronounced (unless some people pronounce it differently?) with the stress on "mer-".)
Postscript: "Metric space", "affine space", "linear space", "topological space", "projective space", "uniform space", "measurable space", "compact space", "symmetric space", "separable space", "conformal space", "symplectic space", "normed space" are all commonplace phrases and it would seem bizarre to hear any of them pronounced with the primary stress on "space".