Is it safe to have 2 mysql users?

Can I create a new user and password to connect to the database

Yes, this is perfectly fine. Usually applications like WordPress or WooCommerce do not care about what user they are using for the connection – as long as they can read and write data as they need to.

You might even consider it good practice to have different db users for different applications. So if ever your WP got hacked, they would not have the credentials for the other application / database.

Is it safe or we will ecounter problems in WordPress/WooCommerce having two different db users making changes in the db?

This can be problematic. If the other application deletes a product from the Woo db, the product is gone. So if you give another application access to the DB that WordPress is using, you need to be aware that this software could potentially destroy your WP instance.

This is usually where trust comes in. Is that ERP coming from a known vendor that has good reviews, and does their official guide say that it is good to connect directly to the Woo database? Then it should be fine.