Probably the simplest, and most efficient way to do this in Bubble is to have a field on the Quiz datatype to show whether the quiz is full or not (a yes/no would be good enough).

Just set it to ‘yes’ when the quiz is full.

Then use that value in your RG search constraint.