The bigger the map, the more memory space it will take up (there are ways to optimise this: https://docs.rpgjs.dev/guide/performance.html#how-much-space-do-maps-take-up-in-ram)
A map of 100 * 100 tiles is sufficient.
For the layers, I think maximum 50 layers
There is nothing to prevent you from making huge maps (300*300 tiles by example) but you have to take into consideration
- loading and display on the client side (players may be on low-powered machines)
- there are techniques to put several different maps on several servers for horizontal scaling, it is more complicated with huge maps