I further looked into it. And you are right, it’s actually not a bug. I had to make sure that the local field group is also registered when the wp_ajax_acf/post/get_field_groups
action runs. A classic hooks problem.
This can be closed. Thanks for your help!