Kibana Observability Infrastructure Inventory Docker Containers have error (400): Error while fetching resource

After upgrading Elastic Stack from 8.11.4 to 8.12.0, there is an error when seeing the Docker Containers in the Inventory of Observability Infrastructure of Kibana:

See the screenshot:

I'm unsure if it is a bug or something else for the 8.12.0. Any ideas?