Throw an exception when accessing protected memory on Mac