Probably one of the more unhelpful messages I’ve received today.
There wasn’t anything in the error logs either.
However, if I left the gallery and added the web part to a page, I got a nice error telling me what method was freaking out.
So, the public display shows more information about what is causing the problem than the admin display.