Change the header based error reporting to a file to be able to catch more errors

Closes #3580572

Merge request reports

Loading