More precise dynamic shadows?

Hello, I’ve been creating a scene in which I only use dynamic lighting and shadows (no static lighting at all). However, I ran into a problem - the shadows look really bad and the edges are jagged and not precise at all. I’ve tried searching for some tips on that and I’ve tried to change some parameters in console like max shadow resolution (which improved it a bit when I set it to 4096, but it still looks bad), but overall I couldn’t find a solution that would work for me. I’m attaching some pictures so you can see how the shadows look. Is there any specific way to target and solve this problem that I’ve been missing? Thanks!