Ok, by just leaving the wallet with the error open for quite a while, it looks like it sorted itself.
But my balance is wrong. I lost all my previously staked bbp.
14:57:05

getmininginfo
14:57:05

{
"blocks": 41931,
"currentblocksize": 1000,
"currentblocktx": 0,
"difficulty_podc": 693.6450457751241,
"difficulty_pow": 1483.662604573834,
"difficulty": 693.6450457751241,
"errors": "",
"genproclimit": 1,
"networkhashps": 713394.0251528968,
"hashps": 340.9034190167208,
"minerstarttime": "04-21-2018 12:56:51",
"hashcounter": 4098,
"pooledtx": 2,
"testnet": false,
"chain": "main",
"biblepay-generate": true,
"poolinfo1": "",
"poolinfo2": "",
"poolinfo3": "",
"podc_tried": 0,
"podc_sent": 0,
"podc_sent_amount": 0,
"podc_average_amount_sent": 0,
"miningpulse": 5,
"poolmining": true,
"pool_url": "http://pool2.biblepay.org",
"poolmining_use_ssl": false
}
14:57:18

exec getboincinfo
14:57:21

{
"Command": "getboincinfo",
"CPID": "72a5162338116948c70e904a21916e42",
"Address": "B99KSo452MCNpDEaRsWtveGpRkDyw98YYq",
"CPIDS": "72a5162338116948c70e904a21916e42;",
"CPID-Age (hours)": 423420,
"NextSuperblockHeight": 42025,
"NextSuperblockBudget": 1179301,
"72a5162338116948c70e904a21916e42_ADDRESS": "B99KSo452MCNpDEaRsWtveGpRkDyw98YYq",
"72a5162338116948c70e904a21916e42_RAC": 1978.73,
"72a5162338116948c70e904a21916e42_TEAM": 15044,
"72a5162338116948c70e904a21916e42_WCGRAC": 2657,
"72a5162338116948c70e904a21916e42_TaskWeight": 0,
"72a5162338116948c70e904a21916e42_UTXOWeight": 0,
"Total_RAC": 4635.73,
"Total Payments (One Day)": 448,
"Total Payments (One Week)": 2039,
"Total Budget (One Day)": 1179301,
"Total Budget (One Week)": 8255107,
"Superblock Count (One Week)": 8,
"Superblock Hit Count (One Week)": 8,
"Superblock List": "41820,41615,41410,41205,41000,40795,40590,40385",
"Last Superblock Height": 41820,
"Last Superblock Budget": 1179301,
"Last Superblock Payment": 448,
"Magnitude (One-Day)": 0.3798860511438555,
"Magnitude (One-Week)": 0.2469986155236994
}
14:57:37

exec stakebalance
14:57:37

{
"Command": "stakebalance",
"StakeBalance": 712
}
14:58:46

exec podcupdate true
14:59:04

{
"Command": "podcupdate",
"PODCUpdate": "Processed (8) over 1 CPID(s) successfully."
}