It seems I managed to resolve part of the issue.
Follwing a suggestion at https://stackoverflow.com/questions/35184950/fatal-error-call-to-a-member-function-getid-on-null-in-doctrine I modified \include\client\view.inc.php line 140
from
$clientId = TicketUser::lookupByEmail($email)->getId();
to
$clientId = TicketUser::lookupByEmail($email) ? TicketUser::lookupByEmail($email)->getId() : null;
Now, I don't get any more "Call to a member function getId() on null" errors. Only "Cannot regenerate session id" are logged now.