Due to !133498 layers containing incorrect material indices could lead to generating to many GPU resources crashing Blender. As there is a maximum number of material slots we can limit it. This is just a safeguard for incorrect values in material_index attribute layer. Working with this material index attributes should automatically limit, but I leave that to the modeling module. Pull Request: https://projects.blender.org/blender/blender/pulls/136302