On Tate–Shafarevich groups of one-dimensional families of commutative group schemes over number fields