List view threshold is a limit of 5000 items in the SharePoint online, which can’t be exceeded. Even if a view has filters on indexed columns, the view must have less than 5000 items to ensure better performance.
The best choice to solve this issue is to create folders for each month in the document library, and in each folder make sure files are less than 5000.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.