ACF functions rely on some ACF hooks triggering before they’re executed. If you use an ACF function too early, those hooks haven’t triggered and instead of failing loudly the method does what you’re seeing. You could:
call that function later in the load order
get your data via WP core functions instead of ACF’s, ie get_option()