Lost bluetooth connection with mouse I have a big problem with bluetooth on my Mac Book Pro. 

I bought my first MacBook about month ago. For the first week everything was ok, but then my mouse began to lose connection with the computer. This happens very often (on average every two minutes) and is very annoying.

I'm pretty sure that is not Magic Mouse fault, because I tried connect standard bluetooth mouse and the problem also occurs. 

It looks something like this: works with the mouse, suddenly the cursor disappears. even though I move the mouse, nothing happens on the screen (the touchpad works correctly). After about 20 seconds a message about lost connection with the mouse appears and after 10 seconds a message that the mouse has been connected.

And now the strangest thing: When bluetooth headphones are connected to the computer and I play audio, the problem does not occur. When the headphones are connected but I don't play music, the problem occurs but much less often.

Could this be a problem with the bluetooth module? It is worth noting that the bluetooth keyboard works flawlessly. Please help, because it prevents me from working.



Devices:


MacBook Pro (15-inch, 2019)
macOS Mojave 10.14.6
Apple Magic Mouse 2 
Apple Magic Keyboard
Headphones Phillips SHB3075 Bass+ Bluetooth
This shouldn't make a difference since you're talking about an Apple Magic Mouse 2 and not a 3rd party Bluetooth mouse, but one thing I have seen that does work in some cases is to make sure the mouse is the first Bluetooth device paired to your computer. 

To do this you will need to reset both the macOS Bluetooth Device List and Bluetooth Controller. However, this will reset all connected Bluetooth devices, including your external keyboard and headphones.

In other words, this will remove all existing pairing information for Bluetooth devices, so each will need to be reconnected.
I have some steps you can follow, but I strongly suggest you read all of the steps first before commencing (or perhaps print out the instructions / view them on another device).

Before starting, ensure you have the Bluetooth icon showing in the menu bar. If it is not there, open System Preferences > Bluetooth and enable the option Show Bluetooth in Menu Bar.

Also, since you're trying to resolve an issue with a Bluetooth mouse,  you will need to use your built-in trackpad to follow these steps:


Hold down both the Shift and Option keys and at the same time click on the Bluetooth icon in the menu bar. Once the menu is showing, release the keys.    
From the Bluetooth menu, choose Debug > Remove All Devices
Hold down both the Shift and Option keys again and at the same time click on the Bluetooth icon in the menu bar. 
From the Bluetooth menu,  choose Debug > Reset the Bluetooth Module
Shutdown your MacBook Pro
Ensure your Magic Mouse is fully powered off
Restart your MacBook Pro
Connect the Magic Mouse to your MBP via the USB cable
Now switch on your Magic Mouse
Now click on the Bluetooth icon in the menu bar and choose Open Bluetooth preferences...
When the Magic Mouse pairs with your Mac, it appears in the list of devices
Exit System Preferences


Now test the Magic Mouse long enough to see if it works okay. Once you're satisfied it is, you can go ahead and pair your other devices.

Let me know how you go.