Hello, Welcome to Microsoft Q&A!
This is a summary for the question so that other people who are facing the same issue could check. A workaround is to use the IOCTL_BTH_DISCONNECT_DEVICE IOCTL. It's a win32 API comes from bthioctl.h. This API could disconnect the Bluetooth device from the computer.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.