using jq to break array of elements into multiple arrays of varying length

I have a JSON object that I'd like to transform using jq from one form to another (of course, I could use javascript or python and iterate, but jq would be preferable). The issue is that the input contains long arrays that needs to be broken into multiple smaller arrays whenever data stops repeating within the first array. I'm not really sure how to describe this problem so I'll just put an example out here which is hopefully more explanatory. The one safe assumption-- if it is of any help-- is that the input data is always pre-sorted on the first two elements (e.g. "row_x" and "col_y"):