I encountered the same issue. Looking a the source code of the Kibana plugin the error “Red plugin:opendistro_security@7.1.1 An error occurred during initialisation, please check the logs.” is related to having a wrong URL for the OIDC discovery, or not reachable URL, or some issues related to the certificate used by your OIDC (trust).