The following Virtuoso configuration file parameters to limit the number of triples in SPARQL query post also details how to get around the ERRS_0 42000 D1CTX Hash dictionary is full, exceeded 10000 entries
error.
When a changed in made to the virtuoso.ini
configuration file the database does need to be restarted for the setting to take effect.