This free disk space check is not useful. I think it should be removed. It has happened to me that I have filled the partition post this check was done with an unsuccessful installation and freed some space after the check was supposed to be done with a successful installation. Both dpkg and apt should neither corrupt the databases not keep the system in an inconsistent state on disk full condition. Just checking free disk space at start is not a solution.