This assertion was added in assumption that sizes of input argument are always correct. But this is not such. More correct is to depend on assertions of span access methods. The size of the multi-function parameters is only guaranteed to be large enough so that every index in the mask can be accessed. It may be larger. Pull Request: https://projects.blender.org/blender/blender/pulls/121393