error/quiz/invalidcategory

From MoodleDocs

The category selected on the form either does not exist or you do not have permission to access it. The most likely reason is that some other user either deleted or un-published the category between you displaying the form and submitting it.