I’m not sure, how Windows handles shared memory, but could it be that it has some limitations?
I couldn’t find anything useful regarding Windows and shared memory.
There was recently a bug fix for negative sizes in cpython (issue 6), but I think it’s unrelated to your issue.