Stability of Bernstein–Greene–Kruskal modes