This is the phone closing the apps when they’re running as background processes
Turn on developer mode. See below. Once you have followed those instructions and navigated to Developer Options, search for “duraspeed" and “battery manager”, and within both, make sure your audio apps are marked as exempt from getting killed off by those apps.
That should help or solve your issue. You may have to redo each time after rebooting your phone, not certain on that.