Hi @tecnologo
What version of ACF are you using? The line you referenced does not contain any code in the current 4.3.2 version.
The issue may be that you are using the_sub_field function to echo an object. Is this possible? Are any of the sub fields returning an object?
Thanks
E