Formation of current sheets in structurally unstable magnetic configuration