My device is Redmi Note 10 Pro running Crdroid 7.19 (Android 11). I have always had problems with Bluetooth randomly disconnecting, but this used to happen like once a couple weeks.
But today my device went crazy. For the last 8 or so hours it's been repeatedly turning bluetooth on and off and every so often showing a "bluetooth keeps stopping" error.
I tried clearing cache and data for the Bluetooth app.
I cleared cache and dalvik in TWRP.
I rebooted plenty of times.
I tried changing AVRCP and MAP versions in Developer options
You mentioned running Crdroid. Did this issue occur in the stock rom? Contact/report the issue to people maintaining the rom for your device. Low-level stuff can only be fixed by those.