Are you still working through this issue or were you able to find a solution?
The error happens because of the LAC functions. To troubleshoot could you try sumOver({current_balance}, [], PRE_FILTER). Let me know if that gives a new error or the same error.
For nesting aggregations I recommend checking out this blog from a community expert: