Clarification is needed
- Is there any limitation for not showing the edit option in the list view of the custom record?

- Is there any limitation to removing the edit option for a file-attaching field?

Solution: We can not restrict the edit option from the list view. The only option is to throw a user error when the edit button is clicked. Also, we cannot remove the edit option beside the file attaching field.