I had same issue. when I find someone resolve this in this link.
In iOS 16+, before starting to record, you should change the category. At the same, after ending the record, you should resume the original category.
This fix my problem, hope it helps!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: