Suplementary Gallery Vs. Primary Gallery

The problem is that during the update the data of one of your tables (genres) has mixed up.
I suppose you need to change the values there as they were before. Typically, this table should look like thisgenres_table
entry_key should be filled out according to their types. supplementary column value 1 → supplementary galley , 0 → main. In the submission_files table you can look you attached galleys and check their role by genre_id column. It should correspond to that inside genres table.
For example, my last JATS XML according to the submission_files table has genre_id value → 1, that corresponds to the entry_key SUBMISSION inside genres table. And this is how it should be.

Does this make sense to you?