A certain percent will fail to detonate automatically, so the area will still be unsafe for decades (or longer). Same issue with cluster munitions and high intensity bombing.
Hopefully they are treating these as a quickly deployable defense of last resort and not deploying them in advance. Mines can be deployed by special artillery shells and drones, but generally they shouldn’t be, ever.