No Sound From Bluetooth Speakers And Headphone After 3-4 Secs

Hi there. I have been facing an issue with my Moto Z for the last few days. I'm able to connect to my bluetooth headpones and speakers, but the audio stop after playing for a few seconds. Have tried restarting the device, repairing etc but no help.