A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear respected André van der Hoeven,
Good day! Thank you for posting to Microsoft Community. We are happy to help you.
I’m sorry you’re having a problem and for the situation you encountered, we deeply understand the inconvenience caused and apologize for it.
As per your description, it seems that you get error message while creating a new document library using command based on existing SharePoint site template. I'm afraid, it may need to scan/investigate from the backend side via remote section and collect logs.
As this Forum community has limited resources, the backend support team there has more permission than us, they have more resources to investigate the issue from the backend, they have Escalate channel to escalate your issue to check more and collect log reports for the root cause.
In this situation, we sincerely recommend that you Microsoft 365 admin, can follow the steps in this article and open/create a support ticket to contact online support. The support team there has more permission than us, they can help you remotely and collect logs. They may also involve more resources to investigate the issue from the backend. This would be the most efficient way to handle this case for you.
Note: To create a support ticket, you need to have Microsoft 365 admin privileges and if you aren’t admin of your Office 365 organization, please contact the admin of creating a new ticket.
Reference: How do I find my Microsoft 365 admin? - Microsoft Support
Please accept my Apologies for redirecting you to the related team support as the moderators in this community have limited resources to check the backend information, and to get the fast and better assistance we requested for it.
I'm sorry and I apologize for that.
Appreciate your patience and understanding and thank you for your time and cooperation.
Sincerely,
Waqas Muhammad