On codeguru.com there is an article about the CSysService class and it states:
CSysService is a C++ class which wraps methods around several of the
Win32. API service functions, providing an object-oriented interface
to these functions, grouping common variables and structures in a
single class object. The result is an extensible base class capable of
installing, enumerating, modifying, controlling and removing a service
application in the Service Control Manager.
It means it is an Exception raised by the Win32 API.
On the Beckhoff infosys website you can find the Win32 error codes and their meaning:
https://infosys.beckhoff.com/index.php?content=../content/1031/TcDiagnostics/HTML/TcDiagnostics_WIN32_ErrorCodes.htm&id=
The 0x00000005 error means access denied.
If you take a look at this error on the microsoft support page:
https://support.microsoft.com/en-us/help/842792/an-error-access-denied-error-occurs-when-you-try-to-write-to-a-file-th
you will find out that this error happens when:
you try to write to a file that is in a network shared folder
Your plc is probably trying to write a logfile located in a network shared folder to which it may not always have access to, causing the runtime to crash unexpectedly.
(A network maintenance during the night could explain the access denial and the consequent exception on your machine).
If this is the cause of the problem, please inform the Beckhoff support so that they can investigate it further and maybe fix it in a future release.