https://commons.wikimedia.org/wiki/Special:NewFiles?hidepatrolled=1&limit=50&offset=20160601 and https://commons.wikimedia.org/wiki/Special:NewFiles?hidepatrolled=1&limit=50&offset=20160601&dir=prev are producing the same error as
https://commons.wikimedia.org/wiki/Special:NewFiles?hidepatrolled=1&limit=50&offset= did in T124205.
Specifically, twice now consecutively I had received
A database query error has occurred. This may indicate a bug in the software. Function: IndexPager::buildQueryInfo (NewFilesPager) Error: 2013 Lost connection to MySQL server during query (10.64.16.102)
@jcrespo mentions causes and potential fixes: T141765#2511539