shadow map artifacts

I’ve come across an odd issue with shadows when updating from 5.1 to 5.2

The game was not using virtual shadow maps and after moving to 5.2 had artifacts and messed up rendering of shadows, switching to virtual shadow maps completely solved the issue. Has anyone else seen this or know how to resolve?

Regular shadow maps

Virtual Shadow Maps enabled

I would switch to virtual shadow maps but the performance is poor compared to the regular shadow maps (main reason we disabled it in 5.1)