What you are describing doesn't happen often but it does happen. There are only so many codes in the common IR protocols, actually only 256 brands can be used in the RC5 and original NEC version. To solve the problem they invented RC6 protocol for remotes to expand devices available. Companies are supposed to register their brand with companies like NEC when they need a device ID for their brand so other companies will know the code is in use and not to use it. It is not enforced though and a lot of companies use whatever they like. RC6 was designed to stop that practice and is why if you try to find specifications for RC6 on the net you will not find it published, instead people have reverse engineered it to decode it.
What can you do , really nothing. Sorry , short of re-programming the device there is nothing you can do. I have a remote for a device that triggers my hitachi tv menu buttons so I have to point the remote away from the tv anytime I use it.
You could try using a small reflector , something like aluminum foil to make it so you have to aim the remote a certain way to control the target device. The signals can bounce off walls and ceilings so maybe make it so the soundbar has to bounce off a wall to be received.