I've fixed this issue by setting iOS Deployment Target to "iOS 16.0".
IMPORTANT: Update the setting for the added extension.
Project -> Info -> iOS Deployment Target
Targets -> {your_app} -> General -> Minimum Deployments
Targets -> {Device_Activity_Report_Extension} -> Build Settings -> iOS Deployment Target
In my case, #3 was set as "16.4", and it was causing the issue.