I found a something similar issue here https://github.com/LemmyNet/lemmy-ui/issues/2666
And that sees to be it. I could set the lemmy.world cookie to "lax" using a cookie manager extension. Now it seems to work, both with F5 and when I leave Firefox.
I had the same issue here. Maybe this helps you as a workaround?