fix: should not pop from stack when failed to allocate sentry.