Comments - MariaDB maximum number of tables
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
You don't give details of the error, but InnoDB allows something like 4 billion tables, so the limits you are experiencing are due to other resource limits (e.g. filesystem, memory) in your environment.