Bluetooth not working properly in Fedora 40, disconnects again and again, voice problem

Hi,
I am facing severe problem with my bluetooth in linux, when I pair my bluetooth headphones they disconnect automatically again and again. Also when they are connected I face audio problems (sound cracking). I am using linux on dual boot with windows 11. Bluetooth works fine on windows.

What model of headphones are you using? Also, in another post some people reported success in removing the bluetooth lib and reconnecting their device, you could try running this command:

sudo rm -rf /var/lib/bluetooth