After the suggestion of @fakusb I tried a bit with the different options mentioned so far. If I enable the “Phone calls” option in the device settings, the error does not occur. But if I disable it, the afore-remarked turnoff behaviour happens, no matter if I chose SBC or AAC codec in the developer options. So it seems to me that there is a bug regarding this specific setting.