Reserve space on your hard disk so that when you run out of space you have an emergency reserve
An easy way to reserve disk space via a simple batch file, either interactively or by using command line parameters. There are also a couple of quite useful batch file tricks as well, such as checking you're running as an administrator.
Full instructions here: https://tomssl.com/2016/04/01/how-to-reserve-disk-space-to-save-yourself-from-a-world-of-pain/