Sub Articulo 78.1

In the case that you gave (partiailly quoted below) it is extremely likely
that you have some sort of macro loop.
\newcommand{\A}{stuff\B stuff}
\newcommand{\B}{stuff\C stuff}
\newcommand{\C}{stuff\A stuff}
which will lead to a stack overflow when you actually call any of those
macros.  Look very carefully at the macros on or near line 158 of your
input file.  No finite amount of memory could fix this problem.