FYI, here's how much memory TeX used for this document (you may see such information in the .log file created by pdfjadetex which is deleted by default in lyxtox):

Here is how much of TeX's memory you used:
4847 strings out of 15997
36267 string characters out of 99016
163640 words of memory out of 384000
15827 multiletter control sequences out of 10000+15000
68666 words of font info for 129 fonts, out of 400000 for 1000
14 hyphenation exceptions out of 1000
31i,12n,40p,1588b,3161s stack positions out of 300i,100n,500p,50000b,8000s

See my Jade Odyssey for more details and ideas on this and other related errors.