The error is at line 586.
Cannot get value from scalar (by memory). Copy the stuff around there here. I’m not clear if it’s a big on the migration or something that needs to be (or can be of you’re in a hurry) fixed in your database.
Edit: looks like removing question answer will solve it in the short term