If you are happy working in the database, you might be able to fix this.
First, make a new quiz somewhere (but don't add any questions), and then look at the data you get in the quiz_sections and quiz_slots table for that.
Then, look in those two tables, for the broken quiz id, and compare the differences.
If you feel confident, add manually fix the data for the broken quiz. (From the error message, it looks like you are missing a row in the quiz_sections table.)
However, please be very careful editing directly in the database.
First, make a new quiz somewhere (but don't add any questions), and then look at the data you get in the quiz_sections and quiz_slots table for that.
Then, look in those two tables, for the broken quiz id, and compare the differences.
If you feel confident, add manually fix the data for the broken quiz. (From the error message, it looks like you are missing a row in the quiz_sections table.)
However, please be very careful editing directly in the database.