T015error
Expression nested too deeply
An expression is nested more deeply than the parser allows.
When it is reported
The parser limits nesting so that malformed or hostile templates cannot exhaust the stack. Real templates stay far below the limit.
How to fix it
Move the logic into a function in the script block and call it from the template.
In your terminal and editor
$ piko explain T015Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeExpressionDepthExceeded in Piko's source to see where it is reported.