Thanks @lucyllewy !.
That fixed it. Without sudo, the snap build went through without problem.
So now, the build result shows:
Built, failed to release
And this error message:
Error:Package-restricted permission does not include snap-id GhcPmkNNyI2NORCAAdqEG0R303ITAhO9
Is this related to the failed automatic review that I see when I push the snap to the store manually from my local environment?