None of this information helps without knowing which specific field is causing the error as well as what type of field it is and why it might be generating the error. It is impossible to debug your error with the information you’re providing. The line of code in ACF is not the cause of the error, something else is. The place to start debugging is the line of code that calls this function and not the line that the error is generated on.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users