First, be assured that your Bluetooth headphones are not capable of infecting your iPad with malware.
As a diagnostic exercise, delete the Bluetooth-pairing for the headphones:
Settings > Bluetooth > [My Devices] - tap the blue "i" icon that corresponds with your headphones, then select Forget This Device
Close the settings App - and then restart your iPad:
Force restart iPad (models with Face ID or with Touch ID in the top button)
If your iPad doesn’t have the Home button, do the following:
- Press and quickly release the volume button nearest to the top button.
- Press and quickly release the volume button farthest from the top button.
- Press and hold the top button.
- When the Apple logo appears, release the top button.
Force restart iPad (models with the Home button)
Press and hold the top button and the Home button at the same time. When the Apple logo appears, release both buttons.
In the unlikely event that the problem has not been resolved, it may be necessary to reset your iPad settings. While this reset will not cause any loss of data, as a precaution, it is always wise to ensure that you have a current iCloud or iTunes backup before performing the reset:
How to back up your iPhone, iPad, and iPod touch - Apple Support
When you are happy to proceed, you can perform the reset from iPad settings:
Settings > General > Transfer or Reset iPad > Reset > Reset All Settings
If the problem still doesn’t clear, the next step is to reset the iPad to factory settings - after which you will need to restore your data from your backup:
Restore your iPhone, iPad, or iPod to factory settings - Apple Support
Otherwise, you would be well advised to seek assistance directly from Apple Support. You can contact the Support Team using the Support link at top-right or bottom-left of this page. Alternatively and perhaps easier, you can initiate and manage your support cases using the excellent Apple Support App. If not already installed on your iPad, the App can be downloaded from the App Store:
https://apps.apple.com/app/apple-support/id1130498044