Add more sanity checks for header elements, rejecting files with clearly