Thank you, Luis. I figured out that the error was caused due to the lateral structures. I tried to add an inline structure in between the cross-sections already connected using lateral weirs. When I removed those lateral structures, the error got suppressed.