Have you changed the file name?
There are two types of links in the SharePoint, a sharing link and a stable link.
1.When you select a file then click copy link, it is a sharing link. This sharing link URL contains sharing permissions, so the URL will become invalid after a while.
2.To copy the document URL that won't change, click the document -> Details -> Copy the path. URL looks like
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.