Are there specific actions you invoke before getting this error? And what version of Mendix are you using?
I recall encountering similar issues when working in Mx 7.20 below for which I've had contact with Mx support about. The issue only appeared in specific cases.
(See also release notes of Mx 7.20:
"There is an issue when a microflow called from a pop-up window first rolls back the object that is the context of the page and that has not been committed yet and then closes the page. This can result in a JavaScript error and the page becoming unresponsive. (Ticket 70111)"
I had a similar error when I had the cell styler inside a container below the data grid. The problem went away when I moved the cell styler out of the container so it was on the same level as the data grid. You may want to try removing any containers around the cell styler that don’t encompass the data grid.