remove , "options"
from the 3rd nested repeater
while(have_rows("custom_modules", "option")) {
the_row();
// Some stuff
while(have_rows("sub_modules")){
the_row();
// Some more stuff
while(have_rows("social_icons")){
// This while loop breaks it
the_row();
// More stuff
}
}
}