Drupal - Placeholders must have a trailing [] if they are to be expanded with an array of values
That issue got resolved. It was regarding passing array in to the db. Added serialise function resloved the issue.
$query->values([
$ob->machine_name,
$ob->name,
serialize($ob->settings),
]);
$query->execute();