Bug introduced in 12.3.1 or earlier and fixed in 13.1.0
This is a problem comes out in the discussion here and I think it's worth posting a new question for it. Consider the following sample:
With[{ψ = ψ[x, t]}, kge = D[ψ, {t, 2}] - D[ψ, {x, 2}] + ψ;
ic = {ψ == Sin[Pi x], D[ψ, t] == I Sin[π x]} /. t -> 0;
bc = ψ == 0 /. {{x -> 0}, {x -> 1}}];
sol = NDSolveValue[{kge == 0, bc, ic}, ψ, {x, 0, 1}, {t, 0, 10},
Method -> {MethodOfLines, SpatialDiscretization -> FiniteElement}];
dsol = Derivative[0, 1][sol];
J = sol[#1, #2] + dsol[#1, #2] &;
help[x_?NumericQ, t_] := Abs@J[x, t]
ListPlot[Quiet@Table[NIntegrate[help[x, t], {x, 0, 1}], {t, 0, 1, 1/20}]]

ListPlot[Quiet@Table[NIntegrate[Abs@J[x, t], {x, 0, 1}], {t, 0, 1, 1/20}]]

Integration based on trapezoid rule suggests the first result is correct:
ListPlot[
Table[With[{dh = 1/20},
dh (Total@# - 1/2 (First@# - Last@#)) &@Table[Abs@J[x, t], {x, 0, 1, dh}]],
{t, 0, 1, 1/20}]]
Why doesn't NIntegrate work properly in 2nd case? Is _?NumericQ the only possible fix here?
Tested in v12.3.1 and v13.0.0 (Wolfram Cloud).
