Kinda late, but this is how I solved a similar problem (I had the same error, refreshing on data model wasn't working either).
I noticed I had a previous pivot table based on a previous version of my query (I had modified/replaced some columns most likely). So I deleted that pivot table, and then it worked! I could update correctly my new pivot table, as simple as that.
Cheers