Let $X$ be a differentiable manifold (connected, compact, orientiable) of dimension $4n$. Consider on $X$ a closed $2n$-form $\omega$, with associated cohomology class $[\omega] \in H^{2n}(X,\mathbb{R})$. The integral of its square is some real number, $$ \int_X \omega \wedge \omega \in \mathbb{R} \,, $$ which may be negative, positive, or zero. In general, the integrand $\omega \wedge \omega$ need not have the same sign everywhere as the result of the integral. However, the integral $\int_X \omega \wedge \omega$ is a function only of the cohomology class $[\omega]$, while $\omega \wedge \omega$ depends on the choice of representative $\omega \in [\omega]$. So my question is:
Is it possible to find a cohomologically equivalent $\omega' \in [\omega]$ such that everywhere $\mathrm{sgn}\big(\omega' \wedge \omega'\big) = \mathrm{sgn}\big(\int_X \omega \wedge \omega\big)$?
In the case that the answer is negative, I wonder if one can give criteria under which it holds.
A negative answer was given to a related question here. However, that answer crucially relied on the existence of the Massey triple product, which vanishes in the present case, so it doesn't seem possible to make a similar argument here.