Hi,
I am just a user so no super expert but have you set the Return of the field to the correct one?
When you configure the field you can select what ACF returns when get_field is called.
There are only a few choices so try each one.
$term->name implies an array needs to be returned…
Also, printing out what get_field returns (as an array) helps a lot to see what is returned.
Hope that helps.