sharepoint server – Designer 2010 workflow failed on start with error RunWorkflow: System.UnauthorizedAccessException

We migrated our SharePoint Site from SP 2010 to SP 2013. We have a designer workflow on a custom list and the workflow has couple of approval task forms. The issue we are facing is, workflow ‘Failed on start’ only for the first item added on day. Workflows works fine and assigns task forms as expected from the second item. I checked the ULS logs and I see these messages-

RunWorkflow: System.UnauthorizedAccessException: Access to the path
‘C:UsersaccountnameAppDataLocalTempc1e6ac0b-c897-4e0c-bb6d-a6bae5c4f572Xoml.c198ca3c_a20b_4eef_b7f0_de437f582651.16.3072.18.3072.dll’
is denied
The name of the dll changes with every day.

Workflow history show –

Workflow Cancelled === System Account ===Workflow XXX was canceled by System
Account.

Error === System Account === XXX failed to
start.