Cake\Http\Session::_overwrite(): Argument #1 ($old) must be of type array, null given

Actually no, it seems that your $_SESSION is not initialised.

Looking at Cakephp4 debug before write session - #9 by gludie try setting these Cookie Settings in your config/app_local.php

   'Session' => [
        'defaults' => 'php',
        'ini' => [
            'session.cookie_secure' => false
        ]
    ],