Given hypothetical scenario:
What potential problems could there be if both applications are running at the same time?
No,MySQL and MariaDB (that nginx_proxy_manager documents, are not shared storage databases, and only might detect each others appearance.
You probably can use a database instance shared between two nginx_proxy_manager instances. I don't know if both can share a database or two databases need to be created in the container.