catch StackOverflowError in PGN parser