On a new Lenovo Legion 16IRX8 running Windows 11 23H2, with up-to-date drivers for BIOS, Intel Graphics, and wireless adapter, I cannot cast media to my TV. Opening the Cast menu (Win+K) shows the tv as a wireless display, but clicking on it immediately displays a red "couldn't connect" error. Underneath that is a message: "Connect a cable to cast. Your device doesn't support Miracast, so you'll need to connect an external display with a cable." (This is untrue; this hardware does support Miracast). If I go to Settings > Bluetooth and other device settings > Connect a new device > Wireless display or dock, the tv is similarly visible, but adding it similarly returns "couldn't connect."
I have already tried the generic troubleshooting google has to offer (pc and tv on same LAN, wifi adapter mode is 802.11a/b/g, GPU enabled in BIOS, DxDiag reports "Miracast: Available, with HDCP," Cast to Device allowed in firewall, all related services running).
It's absurd that a new, powerful computer can't perform this basic function. Any ideas what's going on?