Hello cloey258,
Thank you for reaching out to Apple Support Communities, and we'll be happy to help in any way we can. We understand you're having issues with automatic switching with your AirPods Max. To start, cehck ou tthe helpful information about this feature here: Switch your AirPods to another device - Apple Support
"Turn off automatic switching
If you don't want your AirPods to switch automatically, you can turn off automatic switching on your iPhone, iPad, Mac, or Apple TV.
On your iPhone or iPad
- With your AirPods in your ears and connected to your iPhone or iPad, go to Settings > Bluetooth.
- Tap the More Info button
next to your AirPods in the list of devices. - Tap Connect to This iPhone [or iPad].
- Tap When Last Connected to This iPhone [or iPad].
- To turn on this feature again, tap Automatically.
On your Mac
- With your AirPods in your ears and connected to your Mac, choose Apple menu > System Preferences, then click Bluetooth.
- Click the Options button next to your AirPods in the list of devices.
- From the Connect to This Mac menu, choose When Last Connected to This Mac.
- To turn this feature on again, choose Automatically."
We hope this helps.
Cheers!