try to comment out the last if
/*
if (is_array($results) && !empty($results)) {
$row = $results[0];
if ($row->shared_watches >= $accountSharing['unique_video_watches_threshold']) {
$banReason = 'שיתוף';
qz_user_ban($user_id, $banReason, false);
//wp_send_json_error(qz_user_get_ban_message($banReason));
}
}
*/
this if I cannot understand if is where the message is send or where the user gets ban, maybe it is the solution to delete this code or comment it out.