Just to understand better, when you say the sound bar is moving left or right, does it happen on its own without you touching anything? Also, are you using a laptop keyboard, external keyboard, or any headset connected?
Have you tried restarting the laptop? If not, please give that a try.
Also, go to Settings > System > Sound > Advanced > All sound devices, select your device, and turn off Audio Enhancements.
Let me know how it goes.