App restart on take photo

My application(Ionic react capacitor v5) randomly restarts (crashes) when rendering high-quality images, taking photos, or converting HEIC to PNG images. I encounter the following errors:

0x10e0200c0 - [PID=603] WebProcessProxy::didClose: (web process 0 crash)
0x10e0200c0 - [PID=603] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 “((target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.webcontent))” UserInfo={NSLocalizedFailureReason=((target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.webcontent))}>
0x10e05c600 - ProcessAssertion::acquireSync Failed to acquire RBS assertion ‘XPCConnectionTerminationWatchdog’ for process with PID=603, error: (null)
0x144040618 - [pageProxyID=8, webPageID=9, PID=603] WebPageProxy::processDidTerminate: (pid 603), reason=Crash
0x144040618 - [pageProxyID=8, webPageID=9, PID=603] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
0x10f0009c0 - GPUProcessProxy::gpuProcessExited: reason=IdleExit
0x10e021d80 - [PID=0] WebProcessProxy::gpuProcessExited: reason=IdleExit
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = , customInfoType = UIEmojiSearchOperations
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = , customInfoType = UIEmojiSearchOperations

Any suggestions or solutions to this problem would be greatly appreciated.

Thank you!

Pretty sure it’s related to this issue: [Bug]: iOS - Network (?) problems following an iOS update · Issue #7631 · ionic-team/capacitor · GitHub