Just to be clear for anyone else that is looking this problem up from google: you need to update a failing old function my_acf_flexible_content_layout_title that may have been in your theme to this snippet: https://www.advancedcustomfields.com/resources/acf-fields-flexible_content-layout_title/
A filter allows you to modify the text (HTML) displayed at the top of each flexible content layout.