[SDK][ATL] Make ThrowMemoryException protected