The most common cause of this sort of problem is that your OS is detecting a software error (which might be minor), and that error is being written to an error log over and over continuously, causing the log to balloon in size until your hard drive runs out of free space.
You can test to see if this is the problem, and in the process clear out the offending log, by downloading and running:
Maintenance (free)
Titanium Software | Operating System Utilities for Mac - Maintenance
Maintenance is an operating system maintenance and cleaning utility for macOS that you can use to perform miscellaneous computer maintenance tasks: run periodic scripts; rebuild the databases; delete application, font, and system caches; and more.www.titanium-software.fr
I used OnyX and I believe the Maintenance is a subset of it. Where are the log files stored?