Check for Psych::SyntaxError directly