iOS Replaykit exportClipToURL has poor quality video

When I use ReplayKit's exportClipToURL function on iOS to capture a 15-second replay, the resulting video quality is poor, with snowy artifacts on the damaged visuals and audio distortion.

Does anyone know what the reason is? Are there any good solutions?