Dear Lars,
Apologies the thread does not like to see any code snippets and cut it all out….
What you are seeing is that the FCPXML says something like a clip has two audio components the first is a stereo pair and the second is 4 channels.
What we need is the fcpxml if you can attach it, and then we can advise the clip location and name as we would need to have this to be able to see if we can fix it.
Yours Sincerely
James