Hi @Vishvat Gautami ,Thank you for posting in the Q&A forum.
Instead of choosing to override checkout (check-in/discard), you have to Take Ownership of a file.
If the files are checked out to others and you want to take ownership of these checked out files, we can go to library settings > manage files which have no checked in version > tick the files > take ownership of selection. then the chosen files will be checked out to you.
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.