The current pattern contains an invalid occurrence count.
#6006 Run-time catchable error
The current pattern contains an invalid occurrence count.
Additional Information
Repetition is not allowed over a sub-pattern that contains a pattern-save.
Explanation
Patterns of the form
(... P = V ...){M} and (... P = V ...){M to N}
are allowed if the value of M and/or N is unknown at compile-time.
If at run-time the value is greater than 1 this error is emitted and
the system stops.