One of the units causing 500 error

In one of the courses, the second unit is causing 500 Internal Server Error. Please, help me to solve the issue.
There is a query on that page that is taking longer than 60seconds to complete.