Can only upload 1g file sizes (max_execution_time)

After about 1g they error out. I think this is related to the fact that I cant change the max_execution_time in nextcloud. My upload speeds are slow about 270kBs. It errors with filemtime() which seems to be the time a block is written. I was able to change the max upload file size from 16g to 200g and it showed up in nextcloud but increasing execution didnt change the value in nextcloud. Also im using a share thats external storage from my jail. Im running out of ideas though.

Nextcloud version (18)
Operating system and version (Freenas 11.3 jail)
webserver (Caddy)
PHP version _(7.1)

[PHP] Error: filemtime(): stat failed for /mnt/homemovies/ at /usr/local/www/nextcloud/lib/private/Files/Storage/Local.php#195

Local.php @195 line

    public function filemtime($path) {
            $fullPath = $this->getSourcePath($path);
            clearstatcache(true, $fullPath);
            if (!$this->file_exists($path)) {
                    return false;
            }
            if (PHP_INT_SIZE === 4) {
                    $helper = new \OC\LargeFileHelper();
                    return $helper->getFileMtime($fullPath);
            }
                 return filemtime($fullPath);                                 ;line 195
    }

Can’t you test this if you upload from a location with faster upload speeds?