I worked out a left‐to‐right matching of the 45 terminals against your top‐level A1‐production.  At each nonterminal I chose or modified a subrule so that it spits out exactly the needed slice of the target, inserting only the absolutely required terminals.  Here are the nine productions that had to be tweaked (all the others can stay as they were):

Updated production rules:

rule_1: A1 -> A19 A45 A47 A22 A45 22 A46 A4 A42 20 A44 2 21 A7 A42 A43 A36 A30 A2

rule_28: A14 -> A7 9

rule_44: A22 -> 26 1

rule_46: A22 -> 25 6 A23 5

rule_63: A31 -> 16 A34 A33 1

rule_72: A36 -> 19 A39 A41

rule_78: A40 -> 13 A22 15

rule_83: A43 -> 17 A4

rule_86: A45 -> 2 1