I found the problem and would like to share it.
It is possible to save a task without assigning it to a user
In the update function i make this:
$user = User::findOrFail($validated['user_id']);
$customer = Customer::findOrFail($validated['customer_id']);