How to cause an assessment session to be interrupted by an error

The AEAssessmentSession delegate provides a assessmentSession:wasInterruptedWithError: callback with these instructions:

If one or more subsystems fail during a session, the session tells its delegate by calling the assessmentSession:wasInterruptedWithError: method. If your app receives this callback, immediately stop the assessment, hide all sensitive content, and end the session.

I would like to test this use case. How can I cause a system error that would cause it to happen?

Documentation: https://developer.apple.com/documentation/automaticassessmentconfiguration/aeassessmentsessiondelegate/3543388-assessmentsession?language=objc