Hi Fadel,
Thank you for your message in this forum.
According to the error message you provided, it seems that you have exceeded the List View Threshold5000 and been blocked, you can normally still add indexes to columns when you have fewer than 20,000 items in your list or library. In SharePoint Online, you can manually add an index to a list of any size. Please refer to these articles for more information: Add an index to a SharePoint columnand Manage large lists and libraries in SharePoint.
Given this situation, you can try removing some items in your list or library to make they are fewer than 20000, after you create index successfully you can add these items back.
Please do let us know if that works for you, we’ll be glad to provide further help.
Best Regards,
Sukie