Hi @IMK,
Thank you for posting in this community.
We can configure IRM to restrict users from downloading files from SharePoint's document libraries.
Information Rights Management (IRM) enables you to limit the actions that users can take on files that have been downloaded from lists or libraries. IRM encrypts the downloaded files and limits the set of users and programs that are allowed to decrypt these files. IRM can also limit the rights of the users who are allowed to read files, so that they cannot take actions such as print copies of the files or copy text from them.
This is the procedure to activate the IRM: Set up Information Rights Management (IRM) in SharePoint admin center.
Once you've enabled IRM for SharePoint Online, you can start applying rights management to lists and libraries. For information, see Apply Information Rights Management to a list or library.
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.