Hi @Artem Shaturskyi,
I‘m afraid this is a known limit in SharePoint. For existing OneDrive accounts or SharePoint document libraries, we cannot apply this change. But these settings apply universally to all new libraries, whether on existing or new SharePoint sites, and on default libraries on new OneDrive sites.
In one word, changes to SharePoint Version history limits can apply to new libraries in existing sites but cannot apply to existing libraries.
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.