i already explained it to you. You just don’t like the answer. And you failed to rationally explain the folding - rock softens from heat due to compreession. Expansion would not heat the rock to allow the folds to undo themselves.
I said nothing about the folding, except that the folding left a flat surface and the sandstone layer had to be deposited before the folded layers had a chance to erode.