I've already fixed it. Basically I just stop recording once and start again after alt tabbing back in. No idea why that changes anything but it may be worth looking into.
I tried all of those changes before as you have posted them in other threads but they didn't help.