HDMI splitter (PS5 to 2 TVs) messes up earc connection

Hi! I have a samsung tv (s95c) and a samsung soundbar (q70t). Soundbar is connected to TVs earc, passthrough enabled. Today I bought an hdmi splitter to be able to switch between 2 different TVs when using PS5. One tv in living room the other one in bedroom on the other side of the wall. As soon as I connect my TV to the hdmi splitter, it stops recognizing earc connection and my sound switches to tv speaker. Anyone can help how can I solve this issue? Thank you🙏