Before checking in the docx file, you need to fill in the value for the required column.
Updated:
You could take a reference to this document:You aren't prompted for required information when you upload a file to a SharePoint Online library using the new experience version
If the response is helpful, please click "Accept Answer" and upvote it.
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.