The issue lies in the id conflict between the two ForEach loops. Since the first few elements have duplicate ids, the lazy layout fails to render them correctly. After giving them elements unique id, the rendering issue fixed.
id
ForEach