There is currently a known issue with Kubernetes 1.27.x. This prevents Lens from e.g. creating new resources, installing the metrics provider or the Trivy operator.
Example issue here: Cannot create deployments with Lens · Issue #7647 · lensapp/lens · GitHub
This will likely be fixed in 1.27.2, kubernetes issue here: OpenAPI spec fetching ignores apiserver URL path · Issue #117463 · kubernetes/kubernetes · GitHub