I presume this cut-off was for the posting only. If your error did occur
there it means you have an overrun in your aux file -- usually due to
unprotected fragile commands in captions or titles.
You should rerun, but with
\errorcontextlines=999
in the preamble, and quote at least 20 lines around line 158 of whatever
file is being read (probably thesis.bbl).