Does it shift anything if you adjust $images = get_field( 'slider_principal_banners', 4 ); to $images = get_field( 'slider_principal_banners' );?
Neither the images nor the URL field will work for me otherwise on my end otherwise. If you’d like to set a max/min of four images, you could set that within the ACF field settings themselves rather than that line.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users