It's not (strictly) a disk space issue. It's Android aggressively trimming cache files that Kodi assumes are never trimmed.
There's a single variable that keeps track of whether or not the cache has been "written", but Android only trims some of the cache files.