The warning is just that, a warning about the amount of data that you are storing in the state (read browser), handling the data in chunks would be a solution for this. The error is something else, not related directly to the state warning, did you see any additional errors in the log, maybe something is happening in the processing or the process is synchronous and taking too long.