Check for errors, log them and return early, do not try to allocate large chunks of memory that we can never possibly read from the file. Fixes #2449
DWARFv5 has a new format for the header, directory table and line table of the debug_line section.