There was a bug in the BlueZ cache device removal policy whenever "Temporary Timeout = 0" was set in main.conf file It was fixed in version 5.74+ I suggest to upgrade the BlueZ from 5.66 to 5.80 I am using Debian 12 (bookworm), kernel 6.1 cip
Sorry, if you want bluez 5.80+, you'll need to use Debian 13 which will be released later this year. Thank you, Jeremy Bícha