Can you atleast suppress the error reporting by using this code
before the lines as
// Your existing error suppression code
$original_error_reporting = error_reporting();
// Set error reporting to only fatal errors and parse errors
error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR);
and after the line as
// Restore the original error reporting level if needed
error_reporting($original_error_reporting);