iOS App stops responding/Sending commands

Iphone 13 mini, iOS 16. App version 4.4.6
I made an interface to control home theater equipment through the Harmony Hub, and after a few button presses, the app stops working. Force closing and reopening the app does not solve the issue. Rebooting sometimes does, but not always and restoring from backup seems to make it work most of the time.
I can’t seem to find any regularity for this issue. Sometimes the app stops after waking up the phone from sleep, other times it works after sleep.