I am getting this strange error and cannot find anything that will help with this:
I have a repeater block field however it is now broken with this error message and I can't add or remove blocks now:
Blocks limit exceeded
This section has 255 blocks. The maximum allowable amount of blocks is 250. Please delete some of your blocks in the code editor
before editing this section.
Please see the screenshot below
I wanted to share this topic from @Shopify in case it helps others who may find this topic
Preparing for the new Theme Editor
We rebuilt the theme editor to make it faster and easier to use. The rebuilt theme editor has been rolling out to merchants as of September 2020.
The new theme editor doesn’t support theme objects with more than 250 sub-objects, such as sections with 250 or more blocks, or blocks with 250 or more settings. This means that you might need to review and edit some of your sections and blocks so you can upgrade to the new theme editor. Below are some steps you can follow to find objects that are not compatible, and best practices to ensure that you stay under the 250 object limit going forward.
Best practices for reducing the number of blocks and settings in your theme
Click here to read more!
Since Sep 2020, the new theme editor doesn’t support theme objects with more than 250 sub-objects (included sections with 250 or more blocks, or blocks with 250 or more settings). By doing that, Shopify wants to make it faster and easier to use.
Therefore, you need to review, edit and ensure that you stay under 250 objects. This post will show you how to minimize the number of blocks and settings in your theme. Please take a quick look at this and maybe you can find the best solutions for your situation.
Hope this answer is useful to you.