Hello raaj,
unfortunately we are not able to reproduce it.
Can you try theses:
Check if Excel process is not running by Windows Task Manager. If yes please close all excel processes.
Try to generate to another new file.
Is it occurs in other models or only in this one? If only if this one try to localize problem object by insert this debug log to script before row 794 in script(It will produce messages to message explorer).