The scenario described in the title will produce the following error:
Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format)
After that, I am dumped into app delegate and not given much help into what went wrong.
I am familiar with the need to properly end an audio session, but in my particular situation, this would happen when starting the session, in particular here:
node.installTap(onBus: bus, bufferSize: 1024, format: recordingFormat) { buffer, _ in
request.append(buffer)
}