The Statistics - Recalculate vulnerabilities statistics task according to the documentation runs at midnight:
When you enable the Log4j Visualizer, Nexus Repository will automatically create the Statistics - Recalculate vulnerabilities statistics task and schedule it to run daily at midnight in the hosting box's time zone by default.
However its job is to scan log files. Log files are rotated on first inbound request to be recorded to it, on the next day ( after midnight), so the potential for conflict between log rotation moving - renaming files while the task is scanning them exists.
Schedule the task to run by default at a time that would not likely conflict with log rotation. Keep in mind this additional scenario - the request log is rotated on first inbound request to be recorded to it, on the next day ( after midnight) - in a normal busy system this will commonly be in the first minute of12:00 AM in a busy system, but no guarantees.
Will need to update documentation with new time
Manually schedule the task to run at a different time.