A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hello,
I suppose you are talking about SharePoint online. If you have more that 5000 items, it means you are above the limit. There are no workarounds in SPO, as this is a shared place: For SharePoint Online, this limit can't be changed, and is in place 24 x 7 to allow users on shared tenants to always have good performance on queries. To work around the limit, we've outlined some actions you can do to keep your queries within the limit, reference: https://support.office.com/en-us/article/manage...
You will have to reduce the number of the items, by following some of the advises in the article.
Let me know if you have some questions or something is not clear.
Regards,
Manuela