AV1 codec & VP9 codec
YouTube encodes streams at resolutions above 1080p using the AV1 codec or VP9, which are not installed by default on Windows.
You can download them from Microsoft Store:
The other option is to install advanced video players such as VLC or MX Player.