SwifftUI iPadOS landscape view bug

Hi there,

I am currently developing an app for iPhone and iPad. I made a sidebar with various items which are linked to other pages via NavigationLink. The problem is, that as soon as I scroll down, the app crashes. This is only happening in landscape mode on the iPad. What am I doing wrong? Thank you for your help! Here is my code:

    var body: some View {
        NavigationView {
            List {
                Group {
                        NavigationLink(destination: Acetylsalicylsaeure()){
                            Image("AcetylsalicylsaeureMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Acetylsalicylsäure")
                        }
                        NavigationLink(destination: Amiodaron()){
                            Image("AmiodaronMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Amiodaron")
                        }
                        NavigationLink(destination: Atropin()){
                            Image("AtropinMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Atropin")
                        }
                        NavigationLink(destination: Butylscopolamin()){
                            Image("ButylscopolaminMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Butylscopolamin")
                        }
                        NavigationLink(destination: Dimenhydrinat()){
                            Image("DimenhydrinatMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Dimenhydrinat")
                        }
                        NavigationLink(destination: Dimentinden()){
                            Image("DimentindenMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Dimentinden")
                        }
                        NavigationLink(destination: Epinephrin()){
                            Image("EpinephrinMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Epinephrin")
                        }
                        NavigationLink(destination: Esketamin()){
                            Image("EsketaminMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Esketamin")
                        }
                    }
  // More NavigationLinks...
                Group {
                        NavigationLink(destination: Midazolam()){
                            Image("MidazolamMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Midazolam")
                        }
                        NavigationLink(destination: Naloxon()){
                            Image("NaloxonMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Naloxon")
                        }
                        NavigationLink(destination: Paracetamol()){
                            Image("ParacetamolMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Paracetamol")
                        }
                        NavigationLink(destination: Prednisolon()){
                            Image("PrednisolonMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Prednisolon")
                        }
                        NavigationLink(destination: Salbutamol()){
                            Image("SalbutamolMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Salbutamol")
                        }
                        NavigationLink(destination: Sauerstoff()){
                            Image("SauerstoffMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Sauerstoff")
                        }
                        NavigationLink(destination: Urapidil()){
                            Image("UrapidilMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Urapidil")
                        }
                        NavigationLink(destination: Vollelektrolytloesung()){
                            Image("VollelektrolytloesungMediLabel")
                                .resizable()
                                .frame(width:60, height: 30)
                            Text("Vollelektrolytlösung")
                        }
                    }
                }
            .listStyle(SidebarListStyle())
            .navigationTitle("Medikamente")
            
            BackgroundMedikamente()
        }
    }
}

SwifftUI iPadOS landscape view bug
 
 
Q