Could be also some periodic maintenances - check them. If anything tries to write (not sure about read) anything to the database during the rebuilding, it crashes the database.
The register for Order Classes is common for Sales orders and Service orders. When I set an Order Class to create an Activity - it works for Sales Order, while for Service Orders - not. Is any setting...