Too many Logs created by Defender

The server hangs from too many logs created by the Defender. The File Scanning looks like stuck and returning 500 error in the developer console, and it is continuously running.