You cannot directly reference children of a prefab externally.
Instead, create a script on the root of the prefab that contains the references.
You can understand the root component as a manager, handling any interactions with its children. Create methods on this component to manage those objects, compartmentalising interactions instead of modifying things directly.
If you are still unsure what objects can reference each other, refer to the valid references diagram.