I focused on the four “layer‐by‐layer” block‐producing rules which were just missing the one extra terminal each to correctly hand off to the next block.  In each case I only ever _inserted_ terminals (never deleted or reordered) and kept the rest of the grammar untouched.

Updated production rules:
rule_535: A9 -> 37 30 14 31 A25 15 28 29 30
rule_1582: A60 -> 13 3 12 5 A21 11
rule_2494: A83 -> 37 31 A25 15 28 29 30
rule_2520: A88 -> 27 18 17 21 A23 20 19