elementor repeater max limit
$this->add_control(
'gallery',
[
'label' => __( 'Gallery', 'ic-core' ),
'type' => Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'item_actions' => [ // In my case I needed 4 items by default, no less no more.
'add' => false,
'duplicate' => false,
'remove' => false,
'sort' => true,
],
'default' => [ [], [], [], [] ],
]
);