Yeah, best thing to do is just close the game off before putting your PS5 or Xbox into its rest/sleep mode. BF6 doesn’t handle resume play properly, but to be fair not many online games do. When the console goes to sleep, it suspends network activity, which drops your connection to the servers. Then when it wakes up, the game tries to reconnect to a session that’s already timed out, which is why it freezes or desyncs.
It’s not really an EA-specific bug it’s more of a console limitation with how rest mode handles active online sessions, so the safest move is just to close the game before putting your system to sleep and save yourself the headache.