23eerr5 according to EA's help page. This error usually means.
EA anticheat Service has encountered an error. Please restart the game. <Path of Service> <Error #>
This error happens when EA Javelin anticheat can't find the installation folder or can’t start the game. There are two ways to fix this.
Relaunch the EA app (even if you got the game on Steam or the Epic Games Store) as an admin by right-clicking on it and choosing Run As Administrator. Then, relaunch the game directly from the EA app.
Reinstall EA Javelin anticheat.
https://help.ea.com/en/articles/platforms/pc-ea-anticheat/
I recommend running EAAntiCheat.Installer.exe and choosing 'uninstall all'. Then reboot the computer to finish uninstalling EA anticheat.
After that uninstall BF6. Then install BF6 which should also install EA anticheat.
If I don't reply to your post then personal message me. Sometimes the forum fails to notify me when someone replies.