Category tree field in administration

Hi,
I have developed a plugin, that has also a administration part. I have created a page to be able to add some categories. I used „sw-category-tree-field“ tag and it actually works very well. I just realized that I can choose as many categories as I want , but when I save it and store it in database, it saved only 25 of the categories and cuts the rest and does not save them on database. I have checked if there is a limit for this filed on database, and the result is no, there is no limit for the field.
Is there any way to limit / or set it to unlimit this filed in Shopware 6?

Might be a limit in the API.

Thanks for your answer. I checked it so, that I manually write 51 ids in the field in database and Printed out the result of the API in Browser’s Console and I can actually get all 51 items in console but it shows 5 items in Categories Filed in Admin panel and one 20+ item. I think the component that Shopware use for selecting multiple Categories has this limit. This component I mean: „sw-category-tree-field“.
What do you think? Any Idea?