Turn off airplay
Solution 1:
Put the device in AirPlane mode and that disables AirPlay.
At that point, you can turn on WiFi and make sure that AirPlay doesn't pair with anything. If it does, back into AirPlane mode and power off the device.
If you can't keep the device from connecting - you will need to erase the iOS and/or seek hardware service.
Keep in mind - AirPlay will always show as an option when WiFi is on - just having the option to see what AirPlay connections are found doesn't mean AirPlay is on. Just tap iPhone/iPad/iPod and the AirPlay function will be disengaged.