The TV may not send audio to the soundbar and the headphones at the same time. Try turning off the audio output to the soundbar in the TV menu
That won't solve your problem since you want both on at the same time. You may need to split the audio output of the TV and connect both the soundbar and an external bluetooth transmitter.