Hi @Yassir
I found this similar thread for you: https://stackoverflow.com/questions/43510333/unable-to-shrink-data-file-in-sql-server-taking-too-much-time, maybe you can use it as a reference.
If the answer is helpful, please click Accept Answer
and Up-Vote
for the same. If you have any questions, please feel free to let me know.
Best regards,
Aniya