Are you doing DNS name rewrites? I have the same error when using the alias for the node name - which is rewritten by Nginx Proxy Manager.
However, when I SSH directly into the host from a terminal on my desktop using the IPv4 address, all is well. I suspect that there's something in the base config of the Proxmox host that's "expecting" an IPv4 address in that endpoint. So I'm scouting around to see if there's a way to manage the URL "internally" such that I don't get the error.
Here I get an "undefined (Code: 1006)" when I spawn the console instance from the host menu.