I was having the same issues (i3+recordmyscreen), so I switched to another environment for screen recording. I later switched to simplescreenrecorder, which I like a lot more. Maybe SSR works with i3? I haven't tried that yet.
Thanks for the hint. Not doing much screen recording, but will give ssr a try next time :-)
mstdn.binfalse.de is one server in the network