I had this issue, what helped me:
For example I had 2 rows for header, some columns were merged vertically and some weren't;
Once I got the error, I have resized all the row cells in the header (even the ones that were merged and were not visible) and the error went away.
Good luck and have fun!