Check the content in the sub field ‘main_content’
The extra div elements being output is happening here
<?php the_sub_field('main_content'); ?>
so those div elements must be in the wysiwyg editor. This can happen when copying content from a web page and pasting it directly into a WP WYSIWYG editor.