It’s something that could be empirically simulated on computer, I suppose. Do it right, and like a keystone arch or flying buttress, the inward pressure would keep it from collapsing.
Yes it can be done. And was done. Later, by the Romans and more in the Middle Ages. But not then. Not by pyramid builders.