Objects and components in the project view (prefabs) can only reference other objects in the project view - this is by design - if you were to try instantiating that prefab in a different scene, Box is not there, and you get error.
You have to perform some sort of search when the object is instanced, most likely in the Awake() function or Start() of that component