The error message "Warning: Problem encountered during results while solving. Unexpected size of render data." can be caused by the following:
You have enabled a plot of residuals in "Results While Solving" ( see https://www.comsol.com/blogs/plotting-the-algebraic-residual-to-study-model-convergence/ ) without enabling Solver>Advanced>General>Store last residual>While solving and in output