Following up on this question which received a negative answer, I wonder if something weaker is true.
We work in the same set-up as the previous question. Let $B$ be a smooth quasi-projective variety over a field of characteristic zero (you may assume these are just the complex numbers). Let $\pi\colon \mathcal{X} \rightarrow B$ be a smooth and projective morphism with geometrically integral fibres. Let $Z$ be a cycle on $\mathcal{X}$, i.e. a $\mathbb{Z}$-linear combination of closed integral subvarieties of $\mathcal{X}$. Suppose in addition that $Z$ is flat over $B$, i.e. each component of the support of $Z$ is flat over $B$.
Question: is the locus $B_{\text{trivial}} = \{ b\in B \mid \text{ the cycle }Z_b \text{ of }\mathcal{X}_b \text{ is rationally trivial}\}$ a countable union of closed subvarieties of $B$?
What if we ask the same question with rationally trivial replaced by algebraically trivial?