I am getting this same error but only after adding the Assessment extension. If I remove that extension the course preview works again.