Exponential shadow map might get really tricky to get self shadow, I would recommend to use percentage CloserFiltering: https://www.babylonjs-playground.com/#JPVT2W#2
or PCSS in this case.
In case you really want to use ESM, you can try the close ESM instead : https://www.babylonjs-playground.com/#JPVT2W#3