bluetoothaudiod crashes after Macbook updated to Catalina
I have MacBook (Retina, 12-inch, 2017) with 8 GB memory that some months ago updated to MacOS Catalina. Previously it worked very well with bluetooth audio, but with Catalina it crashes often. I was investigating a reason for that and found that it happens always when system needs additional memory and "memory pressure" in system monitor goes to yellow zone. Then I checked logs and what I see is that kernel kills bluetoothaudiod because it thinks it's idle.
default 12:55:08.373868+0300 kernel memorystatus: killing_idle_process pid 61743 [bluetoothaudiod] jetsam_reason->osr_code: 9
default 12:55:08.374861+0300 mediaremoted Client <MRDMediaRemoteClient 0x7fe671f3c730, bundleIdentifier = bluetoothaudiod, pid = 61743> invalidated.
default 12:55:08.375266+0300 mediaremoted Removing client <MRDMediaRemoteClient 0x7fe671f3c730, bundleIdentifier = bluetoothaudiod, pid = 61743>
default 12:55:08.393661+0300 mediaremoted [AVRoutingServer] Setting (null) to application picked routes for client <MRDMediaRemoteClient 0x7fe671f3c730, bundleIdentifier = bluetoothaudiod, pid = 61743>
default 12:55:08.384690+0300 bluetoothd BTDClient XPC connection for process bluetoothaudiod (61743) is becoming invalidated
default 12:55:08.384799+0300 bluetoothd Removing (<BTDClient: 0x7fd0cc5ae940>) for process bluetoothaudiod (61743)
error 12:55:08.583950+0300 coreaudiod Unable to write all data (0 of 4096)
error 12:55:08.594568+0300 coreaudiod Unable to write all data (0 of 4096)
error 12:55:08.605262+0300 coreaudiod Unable to write all data (0 of 4096)
error 12:55:08.615864+0300 coreaudiod Unable to write all data (0 of 4096)
error 12:55:08.626532+0300 coreaudiod Unable to write all data (0 of 4096)
And this thing can happen with very small amount of opened applications, like Skype, Chrome, Music, and remote control. On Mojave I had even additionally docker running here, 2 IDE and many other apps and there was no any problems with killing bluetooth audio.
MacBook, macOS 10.15