I’ve tried to load the array outside of the acf_load and pass it inside and it works.
$teste =get_field('gerir_portfolio_modelos', $pageidselects );
add_filter('acf/load_field/key=field_5afbf7bb8380b', function( $field ){
global $teste;
(...)
foreach( $teste as $bundle ){ (...)
and it works as expected.
well this fixed it, but i would like to understand why did this happens,
Is this a know bug, or am i missing something?