Data Collector stops randomly

This could be caused by antivirus software installed on the same computer as the Data Collector.

Make sure that no antivirus software is running and/or make an exception for the Data Collector service in the antivirus software.

You can also set up the Recovery options on the Data Collector service in case it fails.