It's a known compatibility issue which is being tracked here: https://github.com/supabase/supabase-js/issues/1400#issuecomment-2843653869
There is a partial solution by using these package versions:
https://github.com/supabase/realtime-js/releases/tag/v2.11.8-next.1
https://github.com/supabase/supabase-js/releases/tag/v2.49.5-next.1