A single command to a Matter device could crash a controller built with Matter.js if the device reported that it accepted zero commands at a time. The protocol defines that value as meaning one, but the library treated it literally and kept creating empty batches until it ran out of memory.
Ingo Fischer's fix interprets zero correctly and checks other invalid limits before they reach command handling. It also corrects affected values when saved connection settings are read again, avoiding a separate storage migration.