Data integrity error after year end close

SOLVED

We have now had 4 different pastel accounts experience this data integrity error recently.

So the issue is that the current year TB is out of balance because last year's Retained earnings + profit and loss does not agree with the current year's Retained earnings.

We haven't changed anything regarding how the year-end close works or is processing but now we are stuck with unbalanced accounts.