How can I disable a plugin in Health Check mode if there’s a critical error?

How can I disable a plugin in Health Check mode if there’s a critical error?

tech