When building lighting with foliage you have to make sure to use a lower lightmap resolution otherwise the lightmap for the instances will be too large and will not build due to the number of instances painted.
Try using a lower lightmap resolution or disabling static lighting for your foliage.