Optionally convert a StructType with too many fields to a MapType.