Job stopped with an unexpected exit code: 0xE0434352 When writing large excel file

Reading is not the problem. I can read the Excel workbook using a custom activity for large workbooks. I am getting the error when writing the updated DT to excel. I have tried write range and append range activities and get the same error