@eaglejohn Downgrading to 5.10.2 will solve the issue, or you can deploy the workaround fix at the bottom of https://www.advancedcustomfields.com/resources/acf-field-functions/ as a quick fix.
That said, your code there should be fine. Where abouts is that code? Is it in a template file, or a filter somewhere?