If your volume is automatically going up and down on your Windows 11 device, it could be due to audio drivers or enhancements.
Have you tried restarting your PC, and does the issue still persist after that?
Go to Settings > System > Sound > Advanced > All sound devices, select your device, and turn off Audio Enhancements
If the issue continues, please reinstall your audio drivers
Press Windows + X and select Device Manager
Expand Sound, video and game controllers
Right-click on your audio device (e.g., Realtek/High Definition Audio)
Click Uninstall device
Check the box (if available) to delete the driver software
Click Uninstall
Restart your PC
After restart, Windows will automatically reinstall the audio driver.