Currently, features of type GeometryCollection are not supported, as seen in stylefunction.js types declaration:
const types = { 'Point': 1, 'MultiPoint': 1, 'LineString': 2, 'MultiLineString': 2, 'Polygon': 3, 'MultiPolygon': 3, };
when a feature of type GeometryCollection is encountered, const type = types[featureGeometry.getType()]; (stylefunction.js line 556) is undefined and no styles are applied.
adding support for GeometryCollection is a matter of iterating over the inner geometries and the styles based on the inner geometry type.