I already tried that and some other ways of refining the mesh but it hasn't helped. However I overcame this issue by modeling curves in separate CAD software and importing them into ansys. Beams still happens to be distorted in workbench, but when I apply the mesh both geometry and mesh size is fine, so I suppose it's some kind of SpaceClaim issue.